remove supurflous variable

svn path=/trunk/netsurf/; revision=13960
This commit is contained in:
Vincent Sanders 2012-06-10 14:53:25 +00:00
parent bc664042c4
commit d6fbe19acd

View File

@ -214,13 +214,15 @@ void nsgtk_tab_set_title(struct gui_window *g, const char *title)
GtkWidget *label;
GtkWidget *tab;
tab = nsgtk_window_get_tab(g);
gboolean is_top_level = (tab != NULL);
if (is_top_level) {
label = g_object_get_data(G_OBJECT(tab), "label");
gtk_label_set_text(GTK_LABEL(label), title);
gtk_widget_set_tooltip_text(tab, title);
if (tab == NULL) {
return;
}
label = g_object_get_data(G_OBJECT(tab), "label");
gtk_label_set_text(GTK_LABEL(label), title);
gtk_widget_set_tooltip_text(tab, title);
}
/* exported interface documented in gtk/tabs.h */