summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-01 14:39:07 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-12-01 14:39:07 +0100
commit27933e9741e358950074983565281e264dc3d9fd (patch)
treea383a38fb8f0b379318bfb4cd31661f448ab4a16 /plugins/gtkui
parent576b8419ed5b8d4e586151d8965d1d5f89624ee1 (diff)
restored columns context menu
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/gtkplaylist.c18
1 files changed, 4 insertions, 14 deletions
diff --git a/plugins/gtkui/gtkplaylist.c b/plugins/gtkui/gtkplaylist.c
index 358b5a38..d00cac73 100644
--- a/plugins/gtkui/gtkplaylist.c
+++ b/plugins/gtkui/gtkplaylist.c
@@ -1253,14 +1253,6 @@ gtkpl_add_file_info_cb (DB_playItem_t *it, void *data) {
GDK_THREADS_ENTER();
progress_settext (it->fname);
GDK_THREADS_LEAVE();
-#if 0
- GtkEntry *e = (GtkEntry *)data;
- GDK_THREADS_ENTER();
- gtk_entry_set_text (GTK_ENTRY (e), it->fname);
- GDK_THREADS_LEAVE();
- usleep (100);
- countdown = 10;
-#endif
return 0;
}
@@ -1322,7 +1314,6 @@ gtkpl_header_draw (gtkplaylist_t *ps) {
const char *detail = "button";
// fill background
- //gdk_draw_rectangle (ps->backbuf_header, widget->style->bg_gc[0], TRUE, -10, -10, widget->allocation.width+20, widget->allocation.height+20);
gtk_paint_box (widget->style, ps->backbuf_header, GTK_STATE_NORMAL, GTK_SHADOW_OUT, NULL, NULL, detail, -10, -10, widget->allocation.width+20, widget->allocation.height+20);
gdk_draw_line (ps->backbuf_header, widget->style->mid_gc[GTK_STATE_NORMAL], 0, widget->allocation.height-1, widget->allocation.width, widget->allocation.height-1);
draw_begin ((uintptr_t)ps->backbuf_header);
@@ -1591,6 +1582,10 @@ on_header_button_press_event (GtkWidget *widget,
x += w;
}
}
+ else if (event->button == 3) {
+ GtkWidget *menu = create_headermenu ();
+ gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, widget, 0, gtk_get_current_event_time());
+ }
prev_header_x = -1;
last_header_motion_ev = -1;
return FALSE;
@@ -1627,11 +1622,6 @@ on_header_button_release_event (GtkWidget *widget,
gtkpl_column_rewrite_config (ps);
}
}
-// NOTE: disabled for 0.3.0 release
-// else if (event->button == 3) {
-// GtkWidget *menu = create_headermenu ();
-// gtk_menu_popup (GTK_MENU (menu), NULL, NULL, NULL, widget, 0, gtk_get_current_event_time());
-// }
return FALSE;
}