diff options
author | Perberos <[email protected]> | 2011-12-08 12:58:23 -0300 |
---|---|---|
committer | Perberos <[email protected]> | 2011-12-08 12:58:23 -0300 |
commit | 46a8d42095a30a1b62b7f24658f4886941b54800 (patch) | |
tree | 9862712c41c8187f74f6e1c7786eaf679a51571c /test/matekbd-indicator-test.c | |
parent | 731006ad7b3c6c47a52b8ef16e29e2d5ea9e1ea5 (diff) | |
download | libmatekbd-46a8d42095a30a1b62b7f24658f4886941b54800.tar.bz2 libmatekbd-46a8d42095a30a1b62b7f24658f4886941b54800.tar.xz |
GDK_ key constants was renamed to GDK_KEY_ on GTK+-3.0
Diffstat (limited to 'test/matekbd-indicator-test.c')
-rw-r--r-- | test/matekbd-indicator-test.c | 45 |
1 files changed, 20 insertions, 25 deletions
diff --git a/test/matekbd-indicator-test.c b/test/matekbd-indicator-test.c index fbf2793..3f32acd 100644 --- a/test/matekbd-indicator-test.c +++ b/test/matekbd-indicator-test.c @@ -36,43 +36,38 @@ #include "X11/XKBlib.h" -int -main (int argc, char **argv) +int main(int argc, char** argv) { - GtkWidget *gki; - GtkWidget *mainwin; - GtkWidget *vbox; + GtkWidget* gki; + GtkWidget* mainwin; + GtkWidget* vbox; - bindtextdomain (GETTEXT_PACKAGE, MATELOCALEDIR); - bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); - textdomain (GETTEXT_PACKAGE); + bindtextdomain(GETTEXT_PACKAGE, MATELOCALEDIR); + bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); + textdomain(GETTEXT_PACKAGE); /* Different data dir defs in g-a and g-c-c */ gtk_init (&argc, &argv); - mainwin = gtk_window_new (GTK_WINDOW_TOPLEVEL); + mainwin = gtk_window_new(GTK_WINDOW_TOPLEVEL); - gki = matekbd_indicator_new (); - matekbd_indicator_set_tooltips_format (_ - ("Keyboard Indicator Test (%s)")); - matekbd_indicator_set_parent_tooltips (MATEKBD_INDICATOR (gki), TRUE); + gki = matekbd_indicator_new(); + matekbd_indicator_set_tooltips_format(_("Keyboard Indicator Test (%s)")); + matekbd_indicator_set_parent_tooltips(MATEKBD_INDICATOR (gki), TRUE); - gtk_window_resize (GTK_WINDOW (mainwin), 250, 250); - vbox = gtk_vbox_new (TRUE, 6); + gtk_window_resize(GTK_WINDOW(mainwin), 250, 250); + vbox = gtk_vbox_new(TRUE, 6); - gtk_container_add (GTK_CONTAINER (mainwin), vbox); - gtk_container_set_border_width (GTK_CONTAINER (vbox), 12); - gtk_container_add (GTK_CONTAINER (vbox), - gtk_label_new (_("Indicator:"))); - gtk_container_add (GTK_CONTAINER (vbox), gki); + gtk_container_add(GTK_CONTAINER(mainwin), vbox); + gtk_container_set_border_width(GTK_CONTAINER(vbox), 12); + gtk_container_add(GTK_CONTAINER(vbox), gtk_label_new(_("Indicator:"))); + gtk_container_add(GTK_CONTAINER(vbox), gki); - gtk_widget_show_all (mainwin); + gtk_widget_show_all(mainwin); - g_signal_connect (G_OBJECT (mainwin), - "destroy", G_CALLBACK (gtk_main_quit), NULL); + g_signal_connect(G_OBJECT(mainwin), "destroy", G_CALLBACK(gtk_main_quit), NULL); - - gtk_main (); + gtk_main(); return 0; } |