summaryrefslogtreecommitdiff
path: root/capplets/windows
diff options
context:
space:
mode:
authormonsta <[email protected]>2016-01-14 12:16:36 +0300
committermonsta <[email protected]>2016-01-14 12:16:36 +0300
commitcf8c281161732158ff2bf5831e5b490fccc900ba (patch)
tree02e264b6268e3f0733a40b77f948daf4f114e59b /capplets/windows
parent916c2b552fe3e8feb93139221ccd3d57e7e30acd (diff)
downloadmate-control-center-cf8c281161732158ff2bf5831e5b490fccc900ba.tar.bz2
mate-control-center-cf8c281161732158ff2bf5831e5b490fccc900ba.tar.xz
windows: fix warnings about incompatible pointer types
Diffstat (limited to 'capplets/windows')
-rw-r--r--capplets/windows/mate-window-properties.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/capplets/windows/mate-window-properties.c b/capplets/windows/mate-window-properties.c
index a549dc48..edb0848b 100644
--- a/capplets/windows/mate-window-properties.c
+++ b/capplets/windows/mate-window-properties.c
@@ -312,7 +312,7 @@ int
main (int argc, char **argv)
{
GdkScreen *screen;
- GtkNotebook *nb;
+ GtkWidget *nb;
GtkWidget *general_vbox;
GtkWidget *behaviour_vbox;
GtkWidget *placement_vbox;
@@ -323,6 +323,7 @@ main (int argc, char **argv)
GtkWidget *hbox1;
GtkWidget *hbox2;
GtkWidget *hbox3;
+ GtkWidget *content_area;
gchar *str;
const char *current_wm;
int i;
@@ -368,15 +369,15 @@ main (int argc, char **argv)
widget = gtk_label_new (_("General"));
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), general_vbox, FALSE, FALSE, 6);
- gtk_notebook_append_page (nb, hbox, widget);
+ gtk_notebook_append_page (GTK_NOTEBOOK (nb), hbox, widget);
widget = gtk_label_new (_("Behaviour"));
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), behaviour_vbox, FALSE, FALSE, 6);
- gtk_notebook_append_page (nb, hbox, widget);
+ gtk_notebook_append_page (GTK_NOTEBOOK (nb), hbox, widget);
widget = gtk_label_new (_("Placement"));
hbox = gtk_hbox_new (FALSE, 0);
gtk_box_pack_start (GTK_BOX (hbox), placement_vbox, FALSE, FALSE, 6);
- gtk_notebook_append_page (nb, hbox, widget);
+ gtk_notebook_append_page (GTK_NOTEBOOK (nb), hbox, widget);
/* Compositing manager */
widget = title_label_new (N_("Compositing Manager"));
@@ -584,7 +585,8 @@ main (int argc, char **argv)
update_sensitivity ();
capplet_set_icon (dialog_win, "preferences-system-windows");
- gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (dialog_win)), GTK_WIDGET (nb), TRUE, TRUE, 0);
+ content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog_win));
+ gtk_box_pack_start (GTK_BOX (content_area), nb, TRUE, TRUE, 0);
gtk_widget_show_all (dialog_win);
gtk_main ();