item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
-item = gtk_tool_button_new_from_stock (GTK_STOCK_FULLSCREEN);
-gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
-g_signal_connect (item, "clicked", G_CALLBACK (cb_fullscreen_click), NULL);
+_toolbar_fullscreen_item = gtk_toggle_tool_button_new_from_stock (GTK_STOCK_FULLSCREEN);
+gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), _toolbar_fullscreen_item, -1);
+g_signal_connect (_toolbar_fullscreen_item, "clicked", G_CALLBACK (cb_fullscreen_click), NULL);
item = gtk_separator_tool_item_new();
gtk_toolbar_insert (GTK_TOOLBAR (_toolbar), item, -1);
#ifdef WITH_HILDON
/* Create and add widgets and supporting data. */
- hbox = gtk_hbox_new(FALSE, 0);
+ hbox = gtk_hpaned_new();
gtk_notebook_append_page(notebook, hbox, label);
gtk_container_add(GTK_CONTAINER(_window), notebook);
hildon_program_set_common_toolbar(_program, _toolbar);
gtk_box_pack_start(GTK_BOX(vbox_main), _menu_bar, FALSE, FALSE, 0);
gtk_box_pack_start(GTK_BOX(vbox_main), _toolbar, FALSE, FALSE, 0);
- hbox = gtk_hbox_new(FALSE, 0);
+ hbox = gtk_hpaned_new();
gtk_notebook_append_page(GTK_WIDGET(notebook), hbox, label);
gtk_box_pack_start(GTK_BOX(vbox_main), notebook, TRUE, TRUE, 0);
gtk_widget_show_all(vbox_main);
#endif
+ vbox = gtk_vbox_new(FALSE, 0);
_gps_widget = gtk_frame_new("GPS Info");
- gtk_container_add(GTK_CONTAINER(_gps_widget), vbox =
- gtk_vbox_new(FALSE, 0));
+ gtk_container_add(GTK_CONTAINER(_gps_widget), vbox);
gtk_widget_set_size_request(GTK_WIDGET(_gps_widget), 180, 0);
- gtk_box_pack_start(GTK_BOX(hbox), _gps_widget, FALSE, TRUE, 0);
+ gtk_paned_add1(hbox, _gps_widget);
label = gtk_label_new(" ");
gtk_widget_set_size_request(GTK_WIDGET(label), -1, 10);
gtk_box_pack_start(GTK_BOX(vbox), _heading_panel, TRUE, TRUE, 0);
_map_widget = gtk_drawing_area_new();
- gtk_box_pack_start(GTK_BOX(hbox), _map_widget, TRUE, TRUE, 0);
+ gtk_paned_add2(hbox, _map_widget);
gtk_widget_show_all(hbox);
gps_show_info(); /* hides info, if necessary. */