Mon, 10 Jul 2017 18:11:50 -0500
gtkmedia: Use GtkApplicationWindow as base class
This patch ports PidginMedia to use GtkApplicationWindow as a base
class in preparation for adding GActions to it.
| pidgin/gtkmedia.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/gtkmedia.c Mon Jul 10 18:44:17 2017 -0500 +++ b/pidgin/gtkmedia.c Mon Jul 10 18:11:50 2017 -0500 @@ -72,12 +72,12 @@ struct _PidginMediaClass { - GtkWindowClass parent_class; + GtkApplicationWindowClass parent_class; }; struct _PidginMedia { - GtkWindow parent; + GtkApplicationWindow parent; PidginMediaPrivate *priv; }; @@ -155,7 +155,8 @@ (GInstanceInitFunc) pidgin_media_init, NULL }; - type = g_type_register_static(GTK_TYPE_WINDOW, "PidginMedia", &info, 0); + type = g_type_register_static(GTK_TYPE_APPLICATION_WINDOW, + "PidginMedia", &info, 0); } return type; } @@ -857,7 +858,7 @@ GtkWidget *grid = gtk_grid_new(); GtkWidget *button; gint index = 0; - GtkWindow *win = >kmedia->parent; + GtkApplicationWindow *win = >kmedia->parent; gtk_grid_set_row_homogeneous(GTK_GRID(grid), TRUE); gtk_grid_set_column_homogeneous(GTK_GRID(grid), TRUE);