diff options
author | Xavier Claessens <xclaesse@src.gnome.org> | 2007-12-11 08:28:19 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@src.gnome.org> | 2007-12-11 08:28:19 +0800 |
commit | 955a87dbef08d099fcda317be58e5b677a1ad93d (patch) | |
tree | 410ec81206a7bd39ebc31d8795d91506978bf353 /libempathy-gtk/empathy-chat-window.c | |
parent | 218b72794abe8acaa255847907d5d1ef2a071b15 (diff) | |
download | gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.tar gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.tar.gz gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.tar.bz2 gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.tar.lz gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.tar.xz gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.tar.zst gsoc2013-empathy-955a87dbef08d099fcda317be58e5b677a1ad93d.zip |
Add help menu in chat window
svn path=/trunk/; revision=471
Diffstat (limited to 'libempathy-gtk/empathy-chat-window.c')
-rw-r--r-- | libempathy-gtk/empathy-chat-window.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/libempathy-gtk/empathy-chat-window.c b/libempathy-gtk/empathy-chat-window.c index b4475ff7a..3d1608df1 100644 --- a/libempathy-gtk/empathy-chat-window.c +++ b/libempathy-gtk/empathy-chat-window.c @@ -57,6 +57,7 @@ #include "empathy-group-chat.h" //#include "empathy-sound.h" #include "empathy-ui-utils.h" +#include "empathy-about-dialog.h" #define GET_PRIV(obj) (G_TYPE_INSTANCE_GET_PRIVATE ((obj), EMPATHY_TYPE_CHAT_WINDOW, EmpathyChatWindowPriv)) @@ -103,6 +104,9 @@ struct _EmpathyChatWindowPriv { GtkWidget *menu_tabs_left; GtkWidget *menu_tabs_right; GtkWidget *menu_tabs_detach; + + GtkWidget *menu_help_contents; + GtkWidget *menu_help_about; guint save_geometry_id; }; @@ -168,6 +172,10 @@ static void chat_window_tabs_right_activate_cb (GtkWidget * EmpathyChatWindow *window); static void chat_window_detach_activate_cb (GtkWidget *menuitem, EmpathyChatWindow *window); +static void chat_window_help_contents_cb (GtkWidget *menuitem, + EmpathyChatWindow *window); +static void chat_window_help_about_cb (GtkWidget *menuitem, + EmpathyChatWindow *window); static gboolean chat_window_delete_event_cb (GtkWidget *dialog, GdkEvent *event, EmpathyChatWindow *window); @@ -306,6 +314,8 @@ empathy_chat_window_init (EmpathyChatWindow *window) "menu_tabs_left", &priv->menu_tabs_left, "menu_tabs_right", &priv->menu_tabs_right, "menu_tabs_detach", &priv->menu_tabs_detach, + "menu_help_contents", &priv->menu_help_contents, + "menu_help_about", &priv->menu_help_about, NULL); empathy_glade_connect (glade, @@ -329,6 +339,8 @@ empathy_chat_window_init (EmpathyChatWindow *window) "menu_tabs_left", "activate", chat_window_tabs_left_activate_cb, "menu_tabs_right", "activate", chat_window_tabs_right_activate_cb, "menu_tabs_detach", "activate", chat_window_detach_activate_cb, + "menu_help_contents", "activate", chat_window_help_contents_cb, + "menu_help_about", "activate", chat_window_help_about_cb, NULL); g_object_unref (glade); @@ -1234,6 +1246,20 @@ chat_window_detach_activate_cb (GtkWidget *menuitem, gtk_widget_show (priv->dialog); } +static void +chat_window_help_contents_cb (GtkWidget *menuitem, + EmpathyChatWindow *window) +{ + //empathy_help_show (); +} + +static void +chat_window_help_about_cb (GtkWidget *menuitem, + EmpathyChatWindow *window) +{ + empathy_about_dialog_new (GTK_WINDOW (window)); +} + static gboolean chat_window_delete_event_cb (GtkWidget *dialog, GdkEvent *event, |