diff options
author | Xavier Claessens <xclaesse@gmail.com> | 2010-01-13 18:53:46 +0800 |
---|---|---|
committer | Xavier Claessens <xclaesse@gmail.com> | 2010-01-13 18:53:46 +0800 |
commit | e4337e5c450842abd65f7c2fb7d233c2cc1105df (patch) | |
tree | aec4eb09bfb1b10eb8e5b3a574e9d5d7e8c4bc28 | |
parent | 522f9fa9e51b1e2e6f011c6b34a829f1c245111f (diff) | |
download | gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.tar gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.tar.gz gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.tar.bz2 gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.tar.lz gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.tar.xz gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.tar.zst gsoc2013-empathy-e4337e5c450842abd65f7c2fb7d233c2cc1105df.zip |
Remove the "Contact" alignment from contat widget
-rw-r--r-- | libempathy-gtk/empathy-contact-dialogs.c | 1 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-list-view.c | 2 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.c | 5 | ||||
-rw-r--r-- | libempathy-gtk/empathy-contact-widget.ui | 194 |
4 files changed, 85 insertions, 117 deletions
diff --git a/libempathy-gtk/empathy-contact-dialogs.c b/libempathy-gtk/empathy-contact-dialogs.c index c00558402..390caa2fb 100644 --- a/libempathy-gtk/empathy-contact-dialogs.c +++ b/libempathy-gtk/empathy-contact-dialogs.c @@ -415,6 +415,7 @@ empathy_new_contact_dialog_show_with_contact (GtkWindow *parent, EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT | EMPATHY_CONTACT_WIDGET_EDIT_ID | EMPATHY_CONTACT_WIDGET_EDIT_GROUPS); + gtk_container_set_border_width (GTK_CONTAINER (contact_widget), 8); gtk_box_pack_start (GTK_BOX (gtk_dialog_get_content_area (GTK_DIALOG (dialog))), contact_widget, TRUE, TRUE, 0); diff --git a/libempathy-gtk/empathy-contact-list-view.c b/libempathy-gtk/empathy-contact-list-view.c index 292d97ced..958aaf0fd 100644 --- a/libempathy-gtk/empathy-contact-list-view.c +++ b/libempathy-gtk/empathy-contact-list-view.c @@ -175,6 +175,8 @@ contact_list_view_query_tooltip_cb (EmpathyContactListView *view, priv->tooltip_widget = empathy_contact_widget_new (contact, EMPATHY_CONTACT_WIDGET_FOR_TOOLTIP | EMPATHY_CONTACT_WIDGET_SHOW_LOCATION); + gtk_container_set_border_width ( + GTK_CONTAINER (priv->tooltip_widget), 8); g_object_ref (priv->tooltip_widget); g_signal_connect (priv->tooltip_widget, "destroy", G_CALLBACK (contact_list_view_tooltip_destroy_cb), diff --git a/libempathy-gtk/empathy-contact-widget.c b/libempathy-gtk/empathy-contact-widget.c index 00ecf46ca..773aa6130 100644 --- a/libempathy-gtk/empathy-contact-widget.c +++ b/libempathy-gtk/empathy-contact-widget.c @@ -85,7 +85,7 @@ typedef struct GtkWidget *vbox_contact_widget; /* Contact */ - GtkWidget *vbox_contact; + GtkWidget *hbox_contact; GtkWidget *widget_avatar; GtkWidget *widget_account; GtkWidget *image_account; @@ -1339,7 +1339,7 @@ empathy_contact_widget_new (EmpathyContact *contact, "libempathy-gtk"); gui = empathy_builder_get_file (filename, "vbox_contact_widget", &information->vbox_contact_widget, - "vbox_contact", &information->vbox_contact, + "hbox_contact", &information->hbox_contact, "hbox_presence", &information->hbox_presence, "label_alias", &information->label_alias, "image_state", &information->image_state, @@ -1384,7 +1384,6 @@ empathy_contact_widget_new (EmpathyContact *contact, if (contact != NULL) contact_widget_set_contact (information, contact); - else if (information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ACCOUNT || information->flags & EMPATHY_CONTACT_WIDGET_EDIT_ID) contact_widget_change_contact (information); diff --git a/libempathy-gtk/empathy-contact-widget.ui b/libempathy-gtk/empathy-contact-widget.ui index df8f535fb..6a248d5bb 100644 --- a/libempathy-gtk/empathy-contact-widget.ui +++ b/libempathy-gtk/empathy-contact-widget.ui @@ -6,138 +6,105 @@ <property name="orientation">vertical</property> <property name="spacing">6</property> <child> - <object class="GtkVBox" id="vbox_contact"> + <object class="GtkHBox" id="hbox_contact"> <property name="visible">True</property> - <property name="orientation">vertical</property> <property name="spacing">6</property> <child> - <object class="GtkLabel" id="label654"> - <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Contact</property> - <attributes> - <attribute name="weight" value="bold"/> - </attributes> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkAlignment" id="alignment31"> + <object class="GtkVBox" id="vbox225"> <property name="visible">True</property> - <property name="left_padding">12</property> + <property name="orientation">vertical</property> + <property name="spacing">6</property> <child> - <object class="GtkHBox" id="hbox189"> + <object class="GtkTable" id="table_contact"> <property name="visible">True</property> - <property name="spacing">6</property> + <property name="n_rows">3</property> + <property name="n_columns">2</property> + <property name="column_spacing">6</property> + <property name="row_spacing">6</property> <child> - <object class="GtkVBox" id="vbox225"> + <object class="GtkLabel" id="label680"> <property name="visible">True</property> - <property name="orientation">vertical</property> - <property name="spacing">6</property> - <child> - <object class="GtkTable" id="table_contact"> - <property name="visible">True</property> - <property name="n_rows">3</property> - <property name="n_columns">2</property> - <property name="column_spacing">6</property> - <property name="row_spacing">6</property> - <child> - <object class="GtkLabel" id="label680"> - <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Account:</property> - </object> - <packing> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> - </packing> - </child> - <child> - <object class="GtkLabel" id="label655"> - <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes" comments="Identifier to connect to Instant Messaging network">Identifier:</property> - </object> - <packing> - <property name="top_attach">1</property> - <property name="bottom_attach">2</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> - </packing> - </child> - <child> - <object class="GtkLabel" id="label_alias"> - <property name="visible">True</property> - <property name="xalign">0</property> - <property name="label" translatable="yes">Alias:</property> - </object> - <packing> - <property name="top_attach">2</property> - <property name="bottom_attach">3</property> - <property name="x_options">GTK_FILL</property> - <property name="y_options"></property> - </packing> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - <child> - <placeholder/> - </child> - </object> - <packing> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkHBox" id="hbox_presence"> - <property name="visible">True</property> - <property name="spacing">6</property> - <child> - <object class="GtkImage" id="image_state"> - <property name="stock">gtk-missing-image</property> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">False</property> - <property name="position">0</property> - </packing> - </child> - <child> - <placeholder/> - </child> - </object> - <packing> - <property name="position">1</property> - </packing> - </child> + <property name="xalign">0</property> + <property name="label" translatable="yes">Account:</property> </object> <packing> - <property name="position">0</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> </packing> </child> <child> - <object class="GtkVBox" id="vbox_avatar"> + <object class="GtkLabel" id="label655"> <property name="visible">True</property> - <property name="orientation">vertical</property> - <child> - <placeholder/> - </child> + <property name="xalign">0</property> + <property name="label" translatable="yes" comments="Identifier to connect to Instant Messaging network">Identifier:</property> + </object> + <packing> + <property name="top_attach">1</property> + <property name="bottom_attach">2</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <object class="GtkLabel" id="label_alias"> + <property name="visible">True</property> + <property name="xalign">0</property> + <property name="label" translatable="yes">Alias:</property> + </object> + <packing> + <property name="top_attach">2</property> + <property name="bottom_attach">3</property> + <property name="x_options">GTK_FILL</property> + <property name="y_options"></property> + </packing> + </child> + <child> + <placeholder/> + </child> + <child> + <placeholder/> + </child> + <child> + <placeholder/> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkHBox" id="hbox_presence"> + <property name="visible">True</property> + <property name="spacing">6</property> + <child> + <object class="GtkImage" id="image_state"> + <property name="stock">gtk-missing-image</property> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">1</property> + <property name="position">0</property> </packing> </child> + <child> + <placeholder/> + </child> </object> + <packing> + <property name="position">1</property> + </packing> + </child> + </object> + <packing> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkVBox" id="vbox_avatar"> + <property name="visible">True</property> + <property name="orientation">vertical</property> + <child> + <placeholder/> </child> </object> <packing> @@ -148,7 +115,6 @@ </child> </object> <packing> - <property name="expand">False</property> <property name="position">0</property> </packing> </child> @@ -437,7 +403,7 @@ <object class="GtkLabel" id="label653"> <property name="visible">True</property> <property name="xalign">0</property> - <property name="label" translatable="yes">Information requested…</property> + <property name="label" translatable="yes">Information requested…</property> <property name="use_markup">True</property> <property name="wrap">True</property> </object> @@ -606,7 +572,7 @@ <object class="GtkLabel" id="label669"> <property name="visible">True</property> <property name="xalign">0</property> - <property name="label" translatable="yes">Information requested…</property> + <property name="label" translatable="yes">Information requested…</property> <property name="use_markup">True</property> <property name="wrap">True</property> </object> |