[ghex] Use gtk_scrollbar_new() instead gtk_vscrollbar_new()



commit 98f5f705fc1fadc006e3b20a73f9175a838a13f7
Author: Kalev Lember <kalevlember gmail com>
Date:   Sun Apr 1 23:19:17 2012 +0300

    Use gtk_scrollbar_new() instead gtk_vscrollbar_new()

 src/gtkhex.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gtkhex.c b/src/gtkhex.c
index 203eff0..49b6e35 100644
--- a/src/gtkhex.c
+++ b/src/gtkhex.c
@@ -2220,7 +2220,7 @@ static void gtk_hex_init(GtkHex *gh, gpointer klass) {
 	g_signal_connect(G_OBJECT(gh->adj), "value_changed",
 					 G_CALLBACK(display_scrolled), gh);
 
-	gh->scrollbar = gtk_vscrollbar_new(gh->adj);
+	gh->scrollbar = gtk_scrollbar_new (GTK_ORIENTATION_VERTICAL, gh->adj);
 	gtk_fixed_put(GTK_FIXED(gh), gh->scrollbar, 0, 0);
 	gtk_widget_show(gh->scrollbar);
 }



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