summaryrefslogtreecommitdiff
path: root/logview/logview-window.c
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-14 15:46:56 +0100
committerinfirit <[email protected]>2014-12-15 23:24:56 +0100
commit4fbdbe250e0cee0c76ffb521b658c93f192539f8 (patch)
tree517379015fc9f056d592cfa8c9fbdf177840f7ed /logview/logview-window.c
parent55f6eca4a8876718f9050191c7f67594928151c1 (diff)
downloadmate-utils-4fbdbe250e0cee0c76ffb521b658c93f192539f8.tar.bz2
mate-utils-4fbdbe250e0cee0c76ffb521b658c93f192539f8.tar.xz
Fix deprecated functions
Remove, now unneeded, gdkkeysyms-compat.h include Always use gtk_combo_box_text_new (since Gtk+ 2.24) Gtk3: do not use gdk_cursor_unref Gtk3: replace gtk_hpaned_new Gtk3: replace gtk_widget_modify_font
Diffstat (limited to 'logview/logview-window.c')
-rw-r--r--logview/logview-window.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/logview/logview-window.c b/logview/logview-window.c
index b192c291..c0d65a2b 100644
--- a/logview/logview-window.c
+++ b/logview/logview-window.c
@@ -24,9 +24,6 @@
#include <string.h>
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
-#if GTK_CHECK_VERSION (3, 0, 0)
-#include <gdk/gdkkeysyms-compat.h>
-#endif
#include <glib/gi18n.h>
#include "logview-window.h"
@@ -1301,7 +1298,11 @@ logview_window_init (LogviewWindow *logview)
gtk_widget_show (w);
/* panes */
+#if GTK_CHECK_VERSION (3, 0, 0)
+ hpaned = gtk_paned_new (GTK_ORIENTATION_HORIZONTAL);
+#else
hpaned = gtk_hpaned_new ();
+#endif
gtk_box_pack_start (GTK_BOX (vbox), hpaned, TRUE, TRUE, 0);
priv->hpaned = hpaned;
gtk_widget_show (hpaned);
@@ -1379,11 +1380,7 @@ logview_window_init (LogviewWindow *logview)
/* version selector */
priv->version_bar = gtk_hbox_new (FALSE, 0);
gtk_container_set_border_width (GTK_CONTAINER (priv->version_bar), 3);
-#if GTK_CHECK_VERSION (3, 0, 0)
priv->version_selector = gtk_combo_box_text_new ();
-#else
- priv->version_selector = gtk_combo_box_new_text ();
-#endif
g_signal_connect (priv->version_selector, "changed",
G_CALLBACK (logview_version_selector_changed), logview);
w = gtk_label_new (_("Version: "));