forked from AuroraMiddleware/gtk
Remove a non-effective style-set handler
The style-set handler was supposed to set the background color of the text views in the credits dialog, but due to a thinko it never had any effect, unless a theme change happened while the dialog was open. Seems best to keep the current appearance now and remove the handler. (#577868)
This commit is contained in:
parent
b9355968fc
commit
b037b39886
@ -1863,15 +1863,6 @@ credits_visibility_notify_event (GtkWidget *text_view,
|
|||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
text_view_style_set (GtkWidget *widget,
|
|
||||||
GtkStyle *prev_style,
|
|
||||||
GtkWidget *text_view)
|
|
||||||
{
|
|
||||||
gtk_widget_modify_base (text_view, GTK_STATE_NORMAL,
|
|
||||||
&widget->style->bg[GTK_STATE_NORMAL]);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
add_credits_page (GtkAboutDialog *about,
|
add_credits_page (GtkAboutDialog *about,
|
||||||
GtkWidget *notebook,
|
GtkWidget *notebook,
|
||||||
@ -1915,8 +1906,6 @@ add_credits_page (GtkAboutDialog *about,
|
|||||||
visited_link_color = default_visited_link_color;
|
visited_link_color = default_visited_link_color;
|
||||||
|
|
||||||
view = gtk_text_view_new ();
|
view = gtk_text_view_new ();
|
||||||
g_signal_connect_object (about, "style-set",
|
|
||||||
G_CALLBACK (text_view_style_set), view, 0);
|
|
||||||
|
|
||||||
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
|
buffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW (view));
|
||||||
gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), FALSE);
|
gtk_text_view_set_cursor_visible (GTK_TEXT_VIEW (view), FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user