![]() |
![]() |
![]() |
adg-1 reference manual | ![]() |
---|---|---|---|---|
Top | Description |
#include <adg-1/adg.h> #define ADG_GTK_MODIFIERS GdkWindow * gtk_widget_get_window (GtkWidget *widget
); void adg_gtk_window_hide_here (GtkWindow *window
); void adg_gtk_toggle_button_sensitivize (GtkToggleButton *toggle_button
,GtkWidget *widget
); void adg_gtk_use_default_icons (const gchar *dir
);
#define ADG_GTK_MODIFIERS (GDK_SHIFT_MASK | GDK_CONTROL_MASK | GDK_MOD1_MASK)
A GDK mask of the key/mouse modifiers accepted by the GTK+ widgets
of the ADG library. This means the state of the specified modifiers
is always checked: for example GDK_CONTROL_MASK
and GDK_SHIFT_MASK
are included, hence keeping CTRL
and SHIFT
pressed is different
from keeping only SHIFT
pressed. GDK_LOCK_MASK
instead is not
considered, so having it enabled or disabled does not make any
difference while monitoring the status SHIFT
or CTRL
.
Since 1.0
GdkWindow * gtk_widget_get_window (GtkWidget *widget
);
Returns the widget's window if it is realized, NULL
otherwise.
This is an API fallback for GTK+ prior to 2.14.
|
a GtkWidget |
Returns : |
widget 's window. |
Since 1.0
void adg_gtk_window_hide_here (GtkWindow *window
);
A convenient function that hides window
and tries to store the
current position. Any subsequent call to gtk_widget_show()
will
hopefully reopen the window at the same position.
It can be used instead of gtk_widget_hide()
or by connecting it
to a "response" signal, for instance:
1 2 |
g_signal_connect(dialog, "response", G_CALLBACK(adg_gtk_window_hide_here), NULL); |
|
a GtkWindow |
Since 1.0
void adg_gtk_toggle_button_sensitivize (GtkToggleButton *toggle_button
,GtkWidget *widget
);
Assigns the value of the "active" property of
toggle_button
to the "sensitive" property of widget
.
Useful to set or reset the sensitiveness of widget
depending
of the state of a check button, for example:
1 2 3 4 5 6 |
g_signal_connect(toggle_button, "toggled", G_CALLBACK(adg_gtk_toggle_button_sensitivize), widget1); g_signal_connect(toggle_button, "toggled", G_CALLBACK(adg_gtk_toggle_button_sensitivize), widget2); g_signal_connect(toggle_button, "toggled", G_CALLBACK(adg_gtk_toggle_button_sensitivize), widget3); |
|
a GtkToggleButton |
|
the GtkWidget |
Since 1.0
void adg_gtk_use_default_icons (const gchar *dir
);
Sets the default icon list of every GtkWindow to a hand-coded
list of ADG icons. Check gtk gtk_window_set_default_icon_list()
for further details.
|
the directory where the icons should be installed |