diff options
| author | Andrea Cimitan <andrea.cimitan@canonical.com> | 2012-01-26 09:15:01 +0000 |
|---|---|---|
| committer | Andrea Cimitan <andrea.cimitan@canonical.com> | 2012-01-26 09:15:01 +0000 |
| commit | 721eb0a1be4b6f1df3ec7615c86b1483525df478 (patch) | |
| tree | 726cfe8b3b43ca771db3a91949cbf9ba0e7f2afb /services | |
| parent | 278dde9cfa9c75b92ad8c353cf4bdf0c164f9a94 (diff) | |
| parent | 3ffe02918d121b1df2be691ff4b042827f005a7e (diff) | |
Fixes potential crashes
(bzr r1865.1.1)
Diffstat (limited to 'services')
| -rw-r--r-- | services/panel-service.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/services/panel-service.c b/services/panel-service.c index da0927954..e9ca7c449 100644 --- a/services/panel-service.c +++ b/services/panel-service.c @@ -252,7 +252,7 @@ event_filter (GdkXEvent *ev, GdkEvent *gev, PanelService *self) { if (XkbKeycodeToKeysym(event->display, event->detail, 0, 0) == GDK_KEY_F10) { - if (GTK_MENU (priv->last_menu)) + if (GTK_IS_MENU (priv->last_menu)) gtk_menu_popdown (GTK_MENU (priv->last_menu)); } } @@ -1514,7 +1514,7 @@ panel_service_show_entry (PanelService *self, * active application (which will make it change colour (as state changes), which * then looks like flickering to the user. */ - if (GTK_MENU (last_menu)) + if (GTK_IS_MENU (last_menu)) gtk_menu_popdown (GTK_MENU (last_menu)); } |
