Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 312015 Details for
Bug 444711
popup menu overlaps to the panel
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
patch to fix it.
scim-1.4.7-menu-pos.patch (text/plain), 2.88 KB, created by
Peng Huang
on 2008-07-17 08:51:43 UTC
(
hide
)
Description:
patch to fix it.
Filename:
MIME Type:
Creator:
Peng Huang
Created:
2008-07-17 08:51:43 UTC
Size:
2.88 KB
patch
obsolete
>diff -up scim-1.4.7/extras/panel/scim_panel_gtk.cpp.menu-pos scim-1.4.7/extras/panel/scim_panel_gtk.cpp >--- scim-1.4.7/extras/panel/scim_panel_gtk.cpp.menu-pos 2008-07-17 16:02:08.000000000 +0800 >+++ scim-1.4.7/extras/panel/scim_panel_gtk.cpp 2008-07-17 16:50:32.000000000 +0800 >@@ -409,6 +409,8 @@ static PangoFontDescription *_default_fo > static GtkStatusIcon *_tray_icon = 0; > // static GtkWidget *_tray_icon_factory_button = 0; > // static gulong _tray_icon_destroy_signal_id = 0; >+static bool _tray_icon_clicked = false; >+static guint _tray_icon_clicked_time = 0; > #endif > > static gboolean _input_window_draging = FALSE; >@@ -1699,12 +1701,16 @@ static void > ui_tray_icon_popup_menu_cb (GtkStatusIcon *status_icon, guint button, > guint activate_time, gpointer user_data) > { >+ _tray_icon_clicked = true; >+ _tray_icon_clicked_time = activate_time; > action_show_command_menu (); > } > > static void > ui_tray_icon_activate_cb (GtkStatusIcon *status_icon, gpointer user_data) > { >+ _tray_icon_clicked = true; >+ _tray_icon_clicked_time = gtk_get_current_event_time (); > _panel_agent->request_factory_menu (); > } > >@@ -2459,8 +2465,12 @@ action_show_command_menu (void) > G_CALLBACK (ui_command_menu_exit_activate_cb), > 0); > gtk_widget_show_all (menu_item); >- >- gtk_menu_popup (GTK_MENU (_command_menu), 0, 0, 0, 0, 2, activate_time); >+ if (_tray_icon_clicked && _tray_icon) { >+ gtk_menu_popup (GTK_MENU (_command_menu), 0, 0, gtk_status_icon_position_menu, _tray_icon, 2, _tray_icon_clicked_time); >+ } >+ else >+ gtk_menu_popup (GTK_MENU (_command_menu), 0, 0, 0, 0, 2, activate_time); >+ _tray_icon_clicked = false; > } > > ////////////////////////////////////////////////////////////////////// >@@ -2752,7 +2762,6 @@ slot_show_factory_menu (const std::vecto > MapStringVectorSizeT groups; > std::map<String,size_t> langs, recents; > >- guint32 activate_time = gtk_get_current_event_time (); > > _factory_menu_uuids.clear (); > _factory_menu_activated = true; >@@ -2847,7 +2856,17 @@ slot_show_factory_menu (const std::vecto > g_signal_connect (G_OBJECT (_factory_menu), "deactivate", > G_CALLBACK (ui_factory_menu_deactivate_cb), > NULL); >- gtk_menu_popup (GTK_MENU (_factory_menu), 0, 0, 0, 0, 1, activate_time); >+ >+ if (_tray_icon_clicked && _tray_icon) { >+ while (gtk_main_iteration_do (FALSE)); >+ gtk_menu_popup (GTK_MENU (_factory_menu), 0, 0, gtk_status_icon_position_menu, _tray_icon, 1, _tray_icon_clicked_time); >+ } >+ else { >+ gtk_menu_popup (GTK_MENU (_factory_menu), 0, 0, 0, 0, 1, gtk_get_current_event_time ()); >+ } >+ >+ _tray_icon_clicked = false; >+ > } > } >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 444711
: 312015 |
312020