diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2008-06-04 02:35:02 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2008-06-04 02:35:02 +0800 |
commit | 64b15c5cb7c8d2987e7f8f3c356f7612836a955d (patch) | |
tree | a5f45fa3c7790d05e67a315dccea1c729697c08e /widgets/misc/test-calendar.c | |
parent | 1986408a1eccdf098ad8d55b552d8e0831ef27fb (diff) | |
download | gsoc2013-evolution-64b15c5cb7c8d2987e7f8f3c356f7612836a955d.tar.gz gsoc2013-evolution-64b15c5cb7c8d2987e7f8f3c356f7612836a955d.tar.zst gsoc2013-evolution-64b15c5cb7c8d2987e7f8f3c356f7612836a955d.zip |
Migrate from gtk_window_set_policy() to gtk_window_set_resizable() and
2008-06-03 Kjartan Maraas <kmaraas@gnome.org>
* e-cell-date-edit.c: (e_cell_date_edit_init):
* e-dateedit.c: (create_children):
* e-multi-config-dialog.c: (e_multi_config_dialog_init):
* e-unicode.h:
* test-calendar.c: (main):
* test-dateedit.c: (main):
* test-info-label.c: (main):
Migrate from gtk_window_set_policy() to gtk_window_set_resizable()
and clean up a bunch of coding style issues along the way.
svn path=/trunk/; revision=35584
Diffstat (limited to 'widgets/misc/test-calendar.c')
-rw-r--r-- | widgets/misc/test-calendar.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/widgets/misc/test-calendar.c b/widgets/misc/test-calendar.c index 05fd2bb0e8..1021905f16 100644 --- a/widgets/misc/test-calendar.c +++ b/widgets/misc/test-calendar.c @@ -42,9 +42,11 @@ enum { TARGET_SHORTCUT }; + static GtkTargetEntry target_table[] = { { "E-SHORTCUT", 0, TARGET_SHORTCUT } }; + static guint n_targets = sizeof(target_table) / sizeof(target_table[0]); @@ -73,21 +75,21 @@ main (int argc, char **argv) app = gnome_app_new ("Test", "Test"); gtk_window_set_default_size (GTK_WINDOW (app), 400, 400); - gtk_window_set_policy (GTK_WINDOW (app), FALSE, TRUE, FALSE); + gtk_window_set_resizable (GTK_WINDOW (app), TRUE); gtk_container_set_border_width (GTK_CONTAINER (app), 8); - g_signal_connect((app), "delete_event", - G_CALLBACK (delete_event_cb), NULL); + g_signal_connect (app, "delete_event", + G_CALLBACK (delete_event_cb), NULL); cal = e_calendar_new (); e_calendar_set_minimum_size (E_CALENDAR (cal), 1, 1); calitem = E_CALENDAR (cal)->calitem; gtk_widget_show (cal); - g_signal_connect((calitem), "date_range_changed", - G_CALLBACK (on_date_range_changed), NULL); - g_signal_connect((calitem), "selection_changed", - G_CALLBACK (on_selection_changed), NULL); + g_signal_connect (calitem, "date_range_changed", + G_CALLBACK (on_date_range_changed), NULL); + g_signal_connect (calitem, "selection_changed", + G_CALLBACK (on_selection_changed), NULL); gtk_drag_dest_set (cal, |