[ghex] No need to set the background, it gets overridden anyway



commit 09ebdc0fa2e9d8a83a9ad731a95f94e32008f322
Author: Kalev Lember <kalevlember gmail com>
Date:   Thu Aug 4 12:10:26 2011 +0300

    No need to set the background, it gets overridden anyway

 src/gtkhex.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index e9fa0e8..2a00186 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -1210,13 +1210,6 @@ static void hide_offsets_widget(GtkHex *gh) {
 	}
 }
 
-static void gtk_hex_realize(GtkWidget *widget) {
-	if(GTK_WIDGET_CLASS(parent_class)->realize)
-		(* GTK_WIDGET_CLASS(parent_class)->realize)(widget);  	
-
-	gdk_window_set_back_pixmap(gtk_widget_get_window(widget), NULL, TRUE);
-}
-
 /*
  * default data_changed signal handler
  */
@@ -1997,7 +1990,6 @@ static void gtk_hex_class_init(GtkHexClass *klass, gpointer data) {
 	GTK_WIDGET_CLASS(klass)->key_press_event = gtk_hex_key_press;
 	GTK_WIDGET_CLASS(klass)->key_release_event = gtk_hex_key_release;
 	GTK_WIDGET_CLASS(klass)->button_release_event = gtk_hex_button_release;
-	GTK_WIDGET_CLASS(klass)->realize = gtk_hex_realize;
 
 	/* Changed in Gnome 2.0 -- SnM */
 	G_OBJECT_CLASS(klass)->finalize = gtk_hex_finalize;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]