[gtranslator/gtk4: 34/52] Fix edit header dialog
- From: Daniel Garcia Moreno <danigm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator/gtk4: 34/52] Fix edit header dialog
- Date: Mon, 5 Sep 2022 15:17:51 +0000 (UTC)
commit af0095fa3cc1ad8e83e86b29b839b4ab277e55c2
Author: Daniel García Moreno <dani danigm net>
Date: Thu Jul 21 18:40:14 2022 +0200
Fix edit header dialog
src/gtr-header-dialog.c | 111 +++++++------
src/gtr-header-dialog.ui | 405 +++++++++++++++--------------------------------
2 files changed, 188 insertions(+), 328 deletions(-)
---
diff --git a/src/gtr-header-dialog.c b/src/gtr-header-dialog.c
index bca2757b..b6f54583 100644
--- a/src/gtr-header-dialog.c
+++ b/src/gtr-header-dialog.c
@@ -96,15 +96,15 @@ gtr_header_dialog_class_init (GtrHeaderDialogClass * klass)
}
static void
-take_my_options_checkbutton_toggled (GtkToggleButton * button,
+take_my_options_checkbutton_toggled (GtkCheckButton * button,
GtrHeaderDialog * dlg)
{
gboolean active;
GtrHeaderDialogPrivate *priv = gtr_header_dialog_get_instance_private (dlg);
- g_return_if_fail (button == GTK_TOGGLE_BUTTON (priv->take_my_options));
+ g_return_if_fail (button == GTK_CHECK_BUTTON (priv->take_my_options));
- active = gtk_toggle_button_get_active (button);
+ active = gtk_check_button_get_active (button);
g_settings_set_boolean (priv->settings, GTR_SETTINGS_USE_PROFILE_VALUES,
active);
@@ -327,34 +327,44 @@ gtr_header_dialog_fill_from_header (GtrHeaderDialog * dlg)
/* Damned Lies Information */
text = gtr_header_get_dl_team (header);
- //gtk_entry_set_text (GTK_ENTRY (priv->team), text);
- entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->team));
- gtk_entry_buffer_set_text (entry_buffer, text, -1);
- g_free (text);
+ if (text)
+ {
+ entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->team));
+ gtk_entry_buffer_set_text (entry_buffer, text, -1);
+ g_free (text);
+ }
text = gtr_header_get_dl_module (header);
- //gtk_entry_set_text (GTK_ENTRY (priv->module), text);
- entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->module));
- gtk_entry_buffer_set_text (entry_buffer, text, -1);
- g_free (text);
+ if (text)
+ {
+ entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->module));
+ gtk_entry_buffer_set_text (entry_buffer, text, -1);
+ g_free (text);
+ }
text = gtr_header_get_dl_branch (header);
- //gtk_entry_set_text (GTK_ENTRY (priv->branch), text);
- entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->branch));
- gtk_entry_buffer_set_text (entry_buffer, text, -1);
- g_free (text);
+ if (text)
+ {
+ entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->branch));
+ gtk_entry_buffer_set_text (entry_buffer, text, -1);
+ g_free (text);
+ }
text = gtr_header_get_dl_domain (header);
- //gtk_entry_set_text (GTK_ENTRY (priv->domain), text);
- entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->domain));
- gtk_entry_buffer_set_text (entry_buffer, text, -1);
- g_free (text);
+ if (text)
+ {
+ entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->domain));
+ gtk_entry_buffer_set_text (entry_buffer, text, -1);
+ g_free (text);
+ }
text = gtr_header_get_dl_state (header);
- //gtk_entry_set_text (GTK_ENTRY (priv->state), text);
- entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->state));
- gtk_entry_buffer_set_text (entry_buffer, text, -1);
- g_free (text);
+ if (text)
+ {
+ entry_buffer = gtk_entry_get_buffer (GTK_ENTRY(priv->state));
+ gtk_entry_buffer_set_text (entry_buffer, text, -1);
+ g_free (text);
+ }
}
static void
@@ -363,7 +373,8 @@ gtr_header_dialog_init (GtrHeaderDialog * dlg)
GtrHeaderDialogPrivate *priv = gtr_header_dialog_get_instance_private (dlg);
GtkBox *content_area;
GtkBuilder *builder;
- gchar *root_objects[] = {
+ GError *error = NULL;
+ const char *root_objects[] = {
"main_box",
NULL
};
@@ -388,8 +399,17 @@ gtr_header_dialog_init (GtrHeaderDialog * dlg)
g_signal_connect (dlg, "response", G_CALLBACK (gtk_window_destroy), NULL);
builder = gtk_builder_new ();
- gtk_builder_add_objects_from_resource (builder, "/org/gnome/translator/gtr-header-dialog.ui",
- root_objects, NULL);
+ gtk_builder_add_objects_from_resource (
+ builder, "/org/gnome/translator/gtr-header-dialog.ui",
+ root_objects,
+ &error
+ );
+
+ if (error != NULL)
+ {
+ g_warning ("Error parsing gtr-header-dialog.ui: %s", (error)->message);
+ g_error_free (error);
+ }
priv->main_box = GTK_WIDGET (gtk_builder_get_object (builder, "main_box"));
g_object_ref (priv->main_box);
@@ -423,9 +443,9 @@ gtr_header_dialog_init (GtrHeaderDialog * dlg)
gtk_widget_set_margin_top (priv->notebook, 6);
gtk_widget_set_margin_bottom (priv->notebook, 6);
- gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (priv->take_my_options),
- g_settings_get_boolean (priv->settings,
- GTR_SETTINGS_USE_PROFILE_VALUES));
+ gtk_check_button_set_active (GTK_CHECK_BUTTON (priv->take_my_options),
+ g_settings_get_boolean (priv->settings,
+ GTR_SETTINGS_USE_PROFILE_VALUES));
gtk_text_view_set_editable (GTK_TEXT_VIEW (priv->prj_comment), TRUE);
@@ -434,14 +454,14 @@ gtr_header_dialog_init (GtrHeaderDialog * dlg)
gtk_widget_set_sensitive (priv->charset, FALSE);
gtk_widget_set_sensitive (priv->state, FALSE);
- if (gtk_toggle_button_get_active
- (GTK_TOGGLE_BUTTON (priv->take_my_options)))
+ if (gtk_check_button_get_active
+ (GTK_CHECK_BUTTON (priv->take_my_options)))
{
gboolean active;
active =
- gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON
- (priv->take_my_options));
+ gtk_check_button_get_active (GTK_CHECK_BUTTON
+ (priv->take_my_options));
gtk_widget_set_sensitive (priv->translator, !active);
gtk_widget_set_sensitive (priv->tr_email, !active);
@@ -464,6 +484,8 @@ set_default_values (GtrHeaderDialog * dlg, GtrWindow * window)
priv->po = gtr_tab_get_po (tab);
gtr_header_dialog_fill_from_header (GTR_HEADER_DIALOG (dlg));
+ gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (window));
+
/*Connect signals */
g_signal_connect (priv->take_my_options, "toggled",
G_CALLBACK (take_my_options_checkbutton_toggled), dlg);
@@ -511,30 +533,17 @@ set_default_values (GtrHeaderDialog * dlg, GtrWindow * window)
void
gtr_show_header_dialog (GtrWindow * window)
{
- static GtkWidget *dlg = NULL;
+ GtkWidget *dlg = NULL;
GtrTab *tab = NULL;
+ g_return_if_fail (GTR_IS_WINDOW (window));
tab = gtr_window_get_active_tab (window);
g_return_if_fail (tab != NULL);
- g_return_if_fail (GTR_IS_WINDOW (window));
-
- if (dlg == NULL)
- {
- dlg = GTK_WIDGET (g_object_new (GTR_TYPE_HEADER_DIALOG,
- "use-header-bar", TRUE, NULL));
-
- g_signal_connect (dlg,
- "destroy", G_CALLBACK (gtk_window_destroy), NULL);
+ dlg = GTK_WIDGET (g_object_new (GTR_TYPE_HEADER_DIALOG,
+ "use-header-bar", TRUE, NULL));
+ set_default_values (GTR_HEADER_DIALOG (dlg), window);
- set_default_values (GTR_HEADER_DIALOG (dlg), window);
-
- gtk_widget_show (GTK_WIDGET (dlg));
- }
-
- gtk_window_set_transient_for (GTK_WINDOW (dlg), GTK_WINDOW (window));
- //gtk_window_set_type_hint (GTK_WINDOW (dlg), GDK_WINDOW_TYPE_HINT_DIALOG);
gtk_window_set_modal (GTK_WINDOW (dlg), TRUE);
-
gtk_window_present (GTK_WINDOW (dlg));
}
diff --git a/src/gtr-header-dialog.ui b/src/gtr-header-dialog.ui
index a2ffa46e..0225080b 100644
--- a/src/gtr-header-dialog.ui
+++ b/src/gtr-header-dialog.ui
@@ -3,7 +3,6 @@
<interface>
<requires lib="gtk+" version="3.0"/>
<object class="GtkDialog" id="header_dialog">
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<property name="margin_top">6</property>
@@ -14,53 +13,17 @@
<placeholder/>
</child>
<child internal-child="vbox">
- <object class="GtkBox" id="dialog-vbox2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="orientation">vertical</property>
- <property name="spacing">2</property>
- <child internal-child="action_area">
- <object class="GtkButtonBox" id="dialog-action_area2">
- <property name="visible">True</property>
- <property name="can_focus">False</property>
- <property name="layout_style">end</property>
- <child>
- <object class="GtkButton" id="button1">
- <property name="label">gtk-close</property>
- <property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
- <property name="use_stock">True</property>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">False</property>
- <property name="position">0</property>
- </packing>
- </child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="pack_type">end</property>
- <property name="position">0</property>
- </packing>
- </child>
- <child>
<object class="GtkBox" id="main_box">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="vexpand">True</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkNotebook" id="notebook">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="vexpand">True</property>
<child>
<object class="GtkBox" id="lang_vbox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<property name="margin_top">6</property>
@@ -70,216 +33,178 @@
<object class="GtkCheckButton" id="take_my_options">
<property name="label" translatable="yes">Use my options to complete the following
entries:</property>
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="receives_default">False</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="padding">6</property>
- <property name="position">0</property>
- </packing>
</child>
<child>
<object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="row_spacing">2</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label33">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Translator’s _name:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">tr_name</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">0</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label34">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Translator’s _email:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">tr_email</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">1</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label35">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">_Language:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">2</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="language_code_label">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Language _code:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">3</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label36">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Language _Team email:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">4</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">4</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label37">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Char_set:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">5</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">5</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label38">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Enc_oding:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">6</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">6</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="language_code_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">3</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">3</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="encoding_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">6</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">6</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="charset_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="editable">False</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">5</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">5</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="lg_email_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">4</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">4</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="language_entry">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">2</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">2</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="tr_name">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">0</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="tr_email">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">1</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
- </packing>
</child>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">2</property>
- </packing>
</child>
</object>
</child>
<child type="tab">
<object class="GtkLabel" id="label3">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Translator and Language</property>
</object>
- <packing>
- <property name="tab_fill">False</property>
- </packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<property name="margin_top">6</property>
@@ -289,167 +214,132 @@
<child>
<object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="row_spacing">2</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label23">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Project Id _version:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">0</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label24">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Pot _file creation date:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">pot_date</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">1</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label25">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Po file _revision date:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">po_date</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">2</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label26">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Report message _bugs to:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">rmbt</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">3</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="prj_id_version">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">0</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="pot_date">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="editable">False</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">1</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="po_date">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="editable">False</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">2</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">2</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="rmbt">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">3</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">3</property>
- </packing>
</child>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
</child>
</object>
- <packing>
- <property name="position">1</property>
- </packing>
</child>
<child type="tab">
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Project</property>
</object>
- <packing>
- <property name="position">1</property>
- <property name="tab_fill">False</property>
- </packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<property name="margin_top">6</property>
<property name="margin_bottom">6</property>
- <property name="shadow_type">in</property>
<child>
<object class="GtkTextView" id="prj_comment">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="events">GDK_POINTER_MOTION_MASK | GDK_POINTER_MOTION_HINT_MASK |
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK</property>
<property name="editable">False</property>
</object>
</child>
</object>
- <packing>
- <property name="position">2</property>
- </packing>
</child>
<child type="tab">
<object class="GtkLabel" id="label2">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Comment</property>
</object>
- <packing>
- <property name="position">2</property>
- <property name="tab_fill">False</property>
- </packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="margin_start">6</property>
<property name="margin_end">6</property>
<property name="margin_top">6</property>
@@ -459,171 +349,132 @@
<child>
<object class="GtkGrid">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="row_spacing">2</property>
<property name="column_spacing">6</property>
<child>
<object class="GtkLabel" id="label43">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">DL Team:</property>
<property name="use_underline">True</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">0</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label44">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">DL Module:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">module</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">1</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">1</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label45">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">DL Branch:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">branch</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">2</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">2</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label46">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">DL Domain:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">domain</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">3</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">3</property>
- </packing>
</child>
<child>
<object class="GtkLabel" id="label47">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">DL State:</property>
<property name="use_underline">True</property>
<property name="mnemonic_widget">state</property>
<property name="xalign">0</property>
+ <layout>
+ <property name="column">0</property>
+ <property name="row">4</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">0</property>
- <property name="top_attach">4</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="team">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">0</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">0</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="module">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">1</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">1</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="branch">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">2</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">2</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="domain">
<property name="visible">True</property>
- <property name="can_focus">True</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">3</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">3</property>
- </packing>
</child>
<child>
<object class="GtkEntry" id="state">
<property name="visible">True</property>
- <property name="can_focus">True</property>
<property name="editable">False</property>
+ <layout>
+ <property name="column">1</property>
+ <property name="row">4</property>
+ </layout>
</object>
- <packing>
- <property name="left_attach">1</property>
- <property name="top_attach">4</property>
- </packing>
</child>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
</child>
</object>
- <packing>
- <property name="position">3</property>
- </packing>
</child>
<child type="tab">
<object class="GtkLabel" id="label4">
<property name="visible">True</property>
- <property name="can_focus">False</property>
<property name="label" translatable="yes">Damned Lies Info</property>
</object>
- <packing>
- <property name="position">3</property>
- <property name="tab_fill">False</property>
- </packing>
</child>
</object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">0</property>
- </packing>
</child>
- </object>
- <packing>
- <property name="expand">False</property>
- <property name="fill">True</property>
- <property name="position">1</property>
- </packing>
- </child>
</object>
</child>
- <action-widgets>
- <action-widget response="0">button1</action-widget>
- </action-widgets>
</object>
</interface>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]