5 app_selected_cb (MMGtkApplicationView
*view
,
9 g_debug ("application selected %p", app
);
13 mmtype_selected_cb (MMGtkApplicationView
*view
,
14 MMApplicationType type
,
17 g_debug ("mmtype selected %d", type
);
21 cat_selected_cb (MMGtkApplicationView
*view
,
25 g_debug ("category selected %p", cat
);
28 int main (int argc
, char **argv
)
31 MMGtkApplicationView
*view
;
34 gtk_init (&argc
, &argv
);
36 toplevel
= gtk_window_new (GTK_WINDOW_TOPLEVEL
);
37 g_signal_connect (toplevel
, "delete-event", G_CALLBACK (gtk_main_quit
), NULL
);
38 view
= mm_gtk_application_view_new ();
39 g_signal_connect (view
, "application-selected",
40 G_CALLBACK (app_selected_cb
), NULL
);
41 g_signal_connect (view
, "mmtype-selected",
42 G_CALLBACK (mmtype_selected_cb
), NULL
);
43 g_signal_connect (view
, "category-selected",
44 G_CALLBACK (cat_selected_cb
), NULL
);
45 gtk_widget_show (GTK_WIDGET (view
));
47 gtk_container_add (GTK_CONTAINER (toplevel
), GTK_WIDGET (view
));
49 gtk_widget_show (toplevel
);