[empathy] contact-selector-dialog: make table_contact a protected member
- From: Guillaume Desmottes <gdesmott src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [empathy] contact-selector-dialog: make table_contact a protected member
- Date: Thu, 17 Dec 2009 11:39:12 +0000 (UTC)
commit 43e69eaeb5ea47d0e4a8a75a95ed537696a2639b
Author: Guillaume Desmottes <guillaume desmottes collabora co uk>
Date: Tue Dec 15 19:28:36 2009 +0000
contact-selector-dialog: make table_contact a protected member
So subclass can easily add widgets.
libempathy-gtk/empathy-contact-selector-dialog.c | 7 +++----
libempathy-gtk/empathy-contact-selector-dialog.h | 1 +
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 955487a..c52ac6c 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 b44dbd5..0f52799 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]