Fix some deprecations
This commit is contained in:
@@ -39,7 +39,9 @@
|
||||
|
||||
#include <glib/gi18n.h>
|
||||
#include <gtk/gtk.h>
|
||||
#if !GTK_CHECK_VERSION (3, 0, 0)
|
||||
#if GTK_CHECK_VERSION (3, 0, 0)
|
||||
#include <gtksourceview/gtksource.h>
|
||||
#else
|
||||
#include <gtksourceview/gtksourceiter.h>
|
||||
#endif
|
||||
|
||||
|
@@ -3697,7 +3697,7 @@ bottom_panel_visibility_changed (PlumaPanel *bottom_panel,
|
||||
gboolean visible;
|
||||
GtkAction *action;
|
||||
|
||||
visible = GTK_WIDGET_VISIBLE (bottom_panel);
|
||||
visible = GTK_WIDGET_VISIBLE (GTK_WIDGET (bottom_panel));
|
||||
|
||||
if (pluma_prefs_manager_bottom_panel_visible_can_set ())
|
||||
pluma_prefs_manager_set_bottom_panel_visible (visible);
|
||||
@@ -4169,7 +4169,7 @@ pluma_window_create_tab (PlumaWindow *window,
|
||||
-1,
|
||||
jump_to);
|
||||
|
||||
if (!GTK_WIDGET_VISIBLE (window))
|
||||
if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (window)))
|
||||
{
|
||||
gtk_window_present (GTK_WINDOW (window));
|
||||
}
|
||||
@@ -4221,7 +4221,7 @@ pluma_window_create_tab_from_uri (PlumaWindow *window,
|
||||
jump_to);
|
||||
|
||||
|
||||
if (!GTK_WIDGET_VISIBLE (window))
|
||||
if (!GTK_WIDGET_VISIBLE (GTK_WIDGET (window)))
|
||||
{
|
||||
gtk_window_present (GTK_WINDOW (window));
|
||||
}
|
||||
|
@@ -397,7 +397,7 @@ on_message_received (const char *message,
|
||||
* terminal. We also need to make sure that the window
|
||||
* has been realized otherwise it will not work. lame.
|
||||
*/
|
||||
if (!gtk_widget_get_realized (window))
|
||||
if (!gtk_widget_get_realized (GTK_WIDGET (window)))
|
||||
gtk_widget_realize (GTK_WIDGET (window));
|
||||
|
||||
#ifdef GDK_WINDOWING_X11
|
||||
|
Reference in New Issue
Block a user