Cleanup GTK_CHECK_VERSION and unify gtk+2/3 code where possible
Replace functions available in gtk+2 and gtk+3 gdk_window_get_* | since 2.24 gtk_widget_get_allocation | since 2.18 gtk_widget_get_window | since 2.14 gtk_window_get_group | since 2.10 gtk_widget_get_mapped | since 2.20 gtk_widget_get_realized | since 2.20 gdk_window_get_display | since 2.24 Remove deprecated GtkNotebookPage and check.
This commit is contained in:
@@ -2419,11 +2419,7 @@ language_changed (GObject *object,
|
||||
|
||||
static void
|
||||
notebook_switch_page (GtkNotebook *book,
|
||||
#if GTK_CHECK_VERSION (3, 0, 0)
|
||||
GtkWidget *pg,
|
||||
#else
|
||||
GtkNotebookPage *pg,
|
||||
#endif
|
||||
gint page_num,
|
||||
PlumaWindow *window)
|
||||
{
|
||||
@@ -3582,11 +3578,7 @@ vpaned_restore_position (GtkWidget *widget,
|
||||
GtkAllocation allocation;
|
||||
gint pos;
|
||||
|
||||
#if GTK_CHECK_VERSION (3, 0, 0)
|
||||
gtk_widget_get_allocation (widget, &allocation);
|
||||
#else
|
||||
allocation = widget->allocation;
|
||||
#endif
|
||||
|
||||
pluma_debug_message (DEBUG_WINDOW,
|
||||
"Restoring vpaned position: bottom panel size %d",
|
||||
|
Reference in New Issue
Block a user