Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
DISCONTINUED:openSUSE:11.2:Update
gnome-panel
gnome-panel-bnc356242-recently-used-apps-hidden...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File gnome-panel-bnc356242-recently-used-apps-hidden.patch of Package gnome-panel
diff -aurp gnome-panel-2.22.1.1/gnome-panel/panel-recent.c gnome-panel-2.22.1.1-patched/gnome-panel/panel-recent.c --- gnome-panel-2.22.1.1/gnome-panel/panel-recent.c 2008-05-13 12:31:51.603164000 +0200 +++ gnome-panel-2.22.1.1-patched/gnome-panel/panel-recent.c 2008-05-13 13:10:14.260335000 +0200 @@ -212,6 +212,23 @@ recent_documents_clear_cb (GtkMenuItem gtk_widget_show (clear_recent_dialog); } +static gboolean +panel_recent_filter_recent_apps (const GtkRecentFilterInfo *filter_info, + gpointer user_data) +{ + int i; + + if (filter_info->groups == NULL) + return TRUE; + + for (i = 0; filter_info->groups[i]; i++) { + if (strcmp (filter_info->groups[i], "recently-used-apps") == 0) + return FALSE; + } + + return TRUE; +} + void panel_recent_append_documents_menu (GtkWidget *top_menu, GtkRecentManager *manager) @@ -219,6 +236,7 @@ panel_recent_append_documents_menu (GtkW GtkWidget *recent_menu; GtkWidget *menu_item; int size; + GtkRecentFilter *filter; menu_item = gtk_image_menu_item_new (); setup_menu_item_with_icon (menu_item, @@ -247,6 +265,11 @@ panel_recent_append_documents_menu (GtkW G_CALLBACK (recent_documents_activate_cb), NULL); + filter = gtk_recent_filter_new (); + gtk_recent_filter_add_custom (filter, GTK_RECENT_FILTER_GROUP, panel_recent_filter_recent_apps, NULL, NULL); + gtk_recent_chooser_add_filter (GTK_RECENT_CHOOSER (recent_menu), filter); + /* Hrm, causes a crash? g_object_unref (filter); */ + //FIXME this is not possible with GtkRecent...: egg_recent_view_gtk_set_icon_size (view, panel_menu_icon_get_size ()); g_signal_connect_object (manager, "changed", Seulement dans gnome-panel-2.22.1.1-patched/gnome-panel: .panel-recent.c.swp
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor