mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-01-11 05:19:18 +03:00
remove supurflous variable
svn path=/trunk/netsurf/; revision=13960
This commit is contained in:
parent
bc664042c4
commit
d6fbe19acd
12
gtk/tabs.c
12
gtk/tabs.c
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user