GtkItemFactory *mainmenufactory;
/** @brief Set for full mode, clear for mini mode */
-int full_mode;
+int full_mode = 1;
static void about_popup_got_version(void *v,
const char *err,
(char *)"<CTRL>A", /* accelerator */
menu_tab_action, /* callback */
offsetof(struct tabtype, selectall_activate), /* callback_action */
- 0, /* item_type */
- 0 /* extra_data */
+ (char *)"<StockItem>", /* item_type */
+ GTK_STOCK_SELECT_ALL, /* extra_data */
},
{
(char *)"/Edit/Deselect all tracks", /* path */
0, /* accelerator */
menu_tab_action, /* callback */
offsetof(struct tabtype, properties_activate), /* callback_action */
- 0, /* item_type */
- 0 /* extra_data */
+ (char *)"<StockItem>", /* item_type */
+ GTK_STOCK_PROPERTIES, /* extra_data */
},
{
(char *)"/Edit/Edit playlists", /* path */
(char *)"<CTRL>S", /* accelerator */
0, /* callback */
0, /* callback_action */
- 0, /* item_type */
- 0 /* extra_data */
+ (char *)"<StockItem>", /* item_type */
+ GTK_STOCK_STOP, /* extra_data */
},
{
(char *)"/Control/Playing", /* path */
(char *)"<CheckItem>", /* item_type */
0 /* extra_data */
},
-#if 0
{
(char *)"/Control/Compact mode", /* path */
(char *)"<CTRL>M", /* accelerator */
(char *)"<CheckItem>", /* item_type */
0 /* extra_data */
},
-#endif
{
(char *)"/Control/Activate playlist", /* path */
0, /* accelerator */
0, /* accelerator */
manual_popup, /* callback */
0, /* callback_action */
- 0, /* item_type */
- 0 /* extra_data */
+ (char *)"<StockItem>", /* item_type */
+ GTK_STOCK_HELP, /* extra_data */
},
{
(char *)"/Help/About DisOrder", /* path */
static void toggled_minimode(GtkCheckMenuItem *item,
gpointer attribute((unused)) userdata) {
- full_mode = !gtk_check_menu_item_get_active(item);
- event_raise("mini-mode-changed", NULL);
+ int new_full_mode = !gtk_check_menu_item_get_active(item);
+ if(full_mode != new_full_mode) {
+ full_mode = new_full_mode;
+ event_raise("mini-mode-changed", NULL);
+ }
}
/*