Fri, 09 Aug 2019 01:51:47 -0400
Rename pidgin_account_option_menu_* to pidgin_account_chooser_*.
Also, try to clean up documentation a bit.
| 14286 | 1 | /* |
| 15884 | 2 | * purple - WinPurple Options Plugin |
| 14286 | 3 | * |
| 4 | * File: gtkappbar.h | |
| 5 | * Date: August 2, 2003 | |
| 6 | * Description: Appbar functionality for Windows GTK+ applications | |
|
31293
169eeb43b52c
Remove trailing whitespace
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
7 | * |
| 14286 | 8 | * Copyright (C) 2003, Herman Bloggs <hermanator12002@yahoo.com> |
| 9 | * | |
| 10 | * This program is free software; you can redistribute it and/or modify | |
| 11 | * it under the terms of the GNU General Public License as published by | |
| 12 | * the Free Software Foundation; either version 2 of the License, or | |
| 13 | * (at your option) any later version. | |
| 14 | * | |
| 15 | * This program is distributed in the hope that it will be useful, | |
| 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 18 | * GNU General Public License for more details. | |
| 19 | * | |
| 20 | * You should have received a copy of the GNU General Public License | |
| 21 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
19395
diff
changeset
|
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 14286 | 23 | * |
| 24 | */ | |
| 25 | #ifndef _GTKAPPBAR_H_ | |
| 26 | #define _GTKAPPBAR_H_ | |
| 27 | ||
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
28 | #include <glib.h> |
|
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
29 | #include <gtk/gtk.h> |
|
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
30 | |
| 14286 | 31 | typedef struct { |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
32 | GtkWidget *win; |
| 14286 | 33 | /** The rectangle of the screen area used for docking */ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
34 | RECT docked_rect; |
| 14286 | 35 | /** The height of the window prior to docking */ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
36 | UINT undocked_height; |
| 14286 | 37 | /** The side of the screen to which the window is docked*/ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
38 | UINT side; |
| 14286 | 39 | /** Is the window currently docked? */ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
40 | gboolean docked; |
| 14286 | 41 | /** Is the window currently in the process of docking? */ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
42 | gboolean docking; |
|
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
43 | gboolean undocking; |
| 14286 | 44 | /** Is the window currently registered as an appbar */ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
45 | gboolean registered; |
| 14286 | 46 | /** Callback functions to notify of dock state change */ |
|
19395
13e591244b33
Fix the docked buddy list to consistently not have a taskbar entry thanks to some tips from "imiganai." This took *way* too long because of how arcane dealing with Windows on Windows is (the unnecessary complexity of our gtkappbar implementation doesn't help). Hopefully this doesn't break anything. Fixes #575.
Daniel Atallah <datallah@pidgin.im>
parents:
15884
diff
changeset
|
47 | GSList *dock_cbs; |
| 14286 | 48 | /** Is the window currently iconized? */ |
| 49 | gboolean iconized; | |
| 50 | } GtkAppBar; | |
| 51 | ||
| 52 | typedef void (*GtkAppBarDockCB)(gboolean); | |
| 53 | ||
| 54 | GtkAppBar *gtk_appbar_add(GtkWidget *win); | |
| 55 | void gtk_appbar_remove(GtkAppBar *ab); | |
| 56 | void gtk_appbar_dock(GtkAppBar *ab, UINT side); | |
| 57 | void gtk_appbar_add_dock_cb(GtkAppBar *ab, GtkAppBarDockCB dock_cb); | |
| 58 | ||
| 59 | #endif /* _GTKAPPBAR_H_ */ |