aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-16 03:28:36 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2009-12-17 18:38:50 +0800
commit43e69eaeb5ea47d0e4a8a75a95ed537696a2639b (patch)
tree0ffe6ff23c661682fbade7f3db926002c14f2dec
parent6101004ea39c479f048d8bdc4f3ce4296fb3dba6 (diff)
downloadgsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.tar
gsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.tar.gz
gsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.tar.bz2
gsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.tar.lz
gsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.tar.xz
gsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.tar.zst
gsoc2013-empathy-43e69eaeb5ea47d0e4a8a75a95ed537696a2639b.zip
contact-selector-dialog: make table_contact a protected member
So subclass can easily add widgets.
-rw-r--r--libempathy-gtk/empathy-contact-selector-dialog.c7
-rw-r--r--libempathy-gtk/empathy-contact-selector-dialog.h1
2 files changed, 4 insertions, 4 deletions
diff --git a/libempathy-gtk/empathy-contact-selector-dialog.c b/libempathy-gtk/empathy-contact-selector-dialog.c
index 955487aec..c52ac6c56 100644
--- a/libempathy-gtk/empathy-contact-selector-dialog.c
+++ b/libempathy-gtk/empathy-contact-selector-dialog.c
@@ -48,7 +48,6 @@ typedef struct _EmpathyContactSelectorDialogPriv \
EmpathyContactSelectorDialogPriv;
struct _EmpathyContactSelectorDialogPriv {
- GtkWidget *table_contact;
GtkWidget *account_chooser;
GtkWidget *entry_id;
EmpathyContactManager *contact_manager;
@@ -247,7 +246,7 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
filename = empathy_file_lookup ("empathy-contact-selector-dialog.ui",
"libempathy-gtk");
gui = empathy_builder_get_file (filename,
- "table_contact", &priv->table_contact,
+ "table_contact", &dialog->table_contact,
"entry_id", &priv->entry_id,
NULL);
g_free (filename);
@@ -257,7 +256,7 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
NULL);
content_area = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
- gtk_container_add (GTK_CONTAINER (content_area), priv->table_contact);
+ gtk_container_add (GTK_CONTAINER (content_area), dialog->table_contact);
gtk_dialog_add_button (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL);
@@ -295,7 +294,7 @@ empathy_contact_selector_dialog_init (EmpathyContactSelectorDialog *dialog)
/* Create account chooser */
priv->account_chooser = empathy_account_chooser_new ();
- gtk_table_attach_defaults (GTK_TABLE (priv->table_contact),
+ gtk_table_attach_defaults (GTK_TABLE (dialog->table_contact),
priv->account_chooser,
1, 2, 0, 1);
empathy_account_chooser_set_filter (
diff --git a/libempathy-gtk/empathy-contact-selector-dialog.h b/libempathy-gtk/empathy-contact-selector-dialog.h
index b44dbd5b1..0f5279946 100644
--- a/libempathy-gtk/empathy-contact-selector-dialog.h
+++ b/libempathy-gtk/empathy-contact-selector-dialog.h
@@ -46,6 +46,7 @@ struct _EmpathyContactSelectorDialog {
/* protected fields */
GtkWidget *button_action;
+ GtkWidget *table_contact;
};
GType empathy_contact_selector_dialog_get_type (void);