diff options
author | Sorokin Alexei <[email protected]> | 2016-02-16 03:09:46 +0300 |
---|---|---|
committer | Wolfgang Ulbrich <[email protected]> | 2016-02-21 11:51:49 +0100 |
commit | a0a59122dab148294f199aeb8e9a85901793c435 (patch) | |
tree | 5f7bb8e68a7cfdfc7051cfad5b0702de0f5748c6 /mate-panel | |
parent | 44a6c2f7e478fce00cc987bb76ac519704c13da2 (diff) | |
download | mate-panel-a0a59122dab148294f199aeb8e9a85901793c435.tar.bz2 mate-panel-a0a59122dab148294f199aeb8e9a85901793c435.tar.xz |
fix some warnings
Diffstat (limited to 'mate-panel')
-rw-r--r-- | mate-panel/panel-layout.c | 2 | ||||
-rw-r--r-- | mate-panel/panel-profile.c | 4 | ||||
-rw-r--r-- | mate-panel/panel-widget.c | 4 | ||||
-rw-r--r-- | mate-panel/panel.c | 4 |
4 files changed, 11 insertions, 3 deletions
diff --git a/mate-panel/panel-layout.c b/mate-panel/panel-layout.c index d3a4a9a2..9275dfaf 100644 --- a/mate-panel/panel-layout.c +++ b/mate-panel/panel-layout.c @@ -125,7 +125,7 @@ panel_layout_append_group_helper (GKeyFile *keyfile, const char *type_for_error_message) { gboolean retval = FALSE; - char *id; + const char *id; char *unique_id = NULL; char *path = NULL; GSettings *settings = NULL; diff --git a/mate-panel/panel-profile.c b/mate-panel/panel-profile.c index b5bb9078..61c05b8c 100644 --- a/mate-panel/panel-profile.c +++ b/mate-panel/panel-profile.c @@ -1587,7 +1587,7 @@ panel_profile_toplevel_id_list_notify (GSettings *settings, toplevel_ids_strv = g_settings_get_strv (settings, key); - toplevel_ids = mate_gsettings_strv_to_gslist (toplevel_ids_strv); + toplevel_ids = mate_gsettings_strv_to_gslist ((const gchar **) toplevel_ids_strv); toplevel_ids = panel_g_slist_make_unique (toplevel_ids, (GCompareFunc) g_strcmp0, FALSE); @@ -1631,7 +1631,7 @@ panel_profile_object_id_list_update (gchar **objects) GSList *sublist = NULL, *l; GSList *object_ids; - object_ids = mate_gsettings_strv_to_gslist (objects); + object_ids = mate_gsettings_strv_to_gslist ((const gchar **) objects); object_ids = panel_g_slist_make_unique (object_ids, (GCompareFunc) g_strcmp0, FALSE); diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c index a776a86a..ca4ff641 100644 --- a/mate-panel/panel-widget.c +++ b/mate-panel/panel-widget.c @@ -2517,7 +2517,11 @@ panel_widget_applet_key_press_event (GtkWidget *widget, if (!mate_panel_applet_in_drag) return FALSE; +#if GTK_CHECK_VERSION (3, 0, 0) return gtk_bindings_activate (G_OBJECT (panel), +#else + return gtk_bindings_activate (GTK_OBJECT (panel), +#endif ((GdkEventKey *)event)->keyval, ((GdkEventKey *)event)->state); } diff --git a/mate-panel/panel.c b/mate-panel/panel.c index 6c29eda2..2b4c5859 100644 --- a/mate-panel/panel.c +++ b/mate-panel/panel.c @@ -399,7 +399,11 @@ panel_key_press_event (GtkWidget *widget, if (GTK_IS_SOCKET (gtk_window_get_focus (GTK_WINDOW (widget))) && event->keyval == GDK_KEY_F10 && (event->state & gtk_accelerator_get_default_mod_mask ()) == GDK_CONTROL_MASK) +#if GTK_CHECK_VERSION (3, 0, 0) return gtk_bindings_activate (G_OBJECT (widget), +#else + return gtk_bindings_activate (GTK_OBJECT (widget), +#endif event->keyval, event->state); |