]> Pileus Git - aweather/commitdiff
(Re)Add a workaround for tab positions on Win32
authorAndy Spencer <andy753421@gmail.com>
Sun, 16 May 2010 23:05:48 +0000 (23:05 +0000)
committerAndy Spencer <andy753421@gmail.com>
Sun, 16 May 2010 23:05:48 +0000 (23:05 +0000)
For some reason some installations of Windows cannot set the radar tabs
to be on th left. This appeared to be fixed with Gtk 2.20, but
apparently it only fixed the issue on some Windows version.

src/plugins/radar.c

index 73d275985ab9a13202d3bdfcd0df950afea70e61..4b86240607a39f7f62e28d5d7cd723c45beac117 100644 (file)
@@ -702,7 +702,8 @@ static void gis_plugin_radar_init(GisPluginRadar *self)
        self->sites      = g_hash_table_new_full(g_str_hash, g_str_equal,
                                NULL, (GDestroyNotify)radar_site_free);
        self->config     = gtk_notebook_new();
-       gtk_notebook_set_tab_pos(GTK_NOTEBOOK(self->config), GTK_POS_LEFT);
+       /* Need to position on the top because of Win32 bug */
+       gtk_notebook_set_tab_pos(GTK_NOTEBOOK(self->config), GTK_POS_BOTTOM);
 }
 static void gis_plugin_radar_dispose(GObject *gobject)
 {