Fixed sizing issues

This commit is contained in:
Pierre Pronchery 2011-07-26 12:34:02 +00:00
parent 60ebd1e59c
commit f44226bcf8
5 changed files with 60 additions and 59 deletions

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-26 13:04+0200\n" "POT-Creation-Date: 2011-07-26 14:31+0200\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n" "PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: English\n" "Language-Team: English\n"
@ -706,47 +706,47 @@ msgstr ""
msgid "CVS" msgid "CVS"
msgstr "CVS" msgstr "CVS"
#: ../src/plugins/cvs.c:161 #: ../src/plugins/cvs.c:162
msgid "Root:" msgid "Root:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:163 #: ../src/plugins/cvs.c:164
msgid "Repository:" msgid "Repository:"
msgstr "Repository:" msgstr "Repository:"
#: ../src/plugins/cvs.c:165 #: ../src/plugins/cvs.c:166
msgid "Tag:" msgid "Tag:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:167 ../src/plugins/cvs.c:184 #: ../src/plugins/cvs.c:168 ../src/plugins/cvs.c:185
msgid "Request diff" msgid "Request diff"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:170 ../src/plugins/cvs.c:187 #: ../src/plugins/cvs.c:171 ../src/plugins/cvs.c:188
msgid "Update" msgid "Update"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:173 ../src/plugins/cvs.c:190 #: ../src/plugins/cvs.c:174 ../src/plugins/cvs.c:191
msgid "Commit" msgid "Commit"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:182 #: ../src/plugins/cvs.c:183
msgid "Revision:" msgid "Revision:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:197 #: ../src/plugins/cvs.c:198
msgid "Add to CVS" msgid "Add to CVS"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:200 #: ../src/plugins/cvs.c:201
msgid "Run make" msgid "Run make"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:325 ../src/plugins/cvs.c:394 #: ../src/plugins/cvs.c:326 ../src/plugins/cvs.c:395
msgid "Not a CVS repository" msgid "Not a CVS repository"
msgstr "Kein CVS Inhalt" msgstr "Kein CVS Inhalt"
#: ../src/plugins/cvs.c:417 #: ../src/plugins/cvs.c:418
msgid "Not managed by CVS" msgid "Not managed by CVS"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-26 13:04+0200\n" "POT-Creation-Date: 2011-07-26 14:31+0200\n"
"PO-Revision-Date: 2010-03-30 01:04+0200\n" "PO-Revision-Date: 2010-03-30 01:04+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Spanish\n" "Language-Team: Spanish\n"
@ -706,47 +706,47 @@ msgstr ""
msgid "CVS" msgid "CVS"
msgstr "CVS" msgstr "CVS"
#: ../src/plugins/cvs.c:161 #: ../src/plugins/cvs.c:162
msgid "Root:" msgid "Root:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:163 #: ../src/plugins/cvs.c:164
msgid "Repository:" msgid "Repository:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:165 #: ../src/plugins/cvs.c:166
msgid "Tag:" msgid "Tag:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:167 ../src/plugins/cvs.c:184 #: ../src/plugins/cvs.c:168 ../src/plugins/cvs.c:185
msgid "Request diff" msgid "Request diff"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:170 ../src/plugins/cvs.c:187 #: ../src/plugins/cvs.c:171 ../src/plugins/cvs.c:188
msgid "Update" msgid "Update"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:173 ../src/plugins/cvs.c:190 #: ../src/plugins/cvs.c:174 ../src/plugins/cvs.c:191
msgid "Commit" msgid "Commit"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:182 #: ../src/plugins/cvs.c:183
msgid "Revision:" msgid "Revision:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:197 #: ../src/plugins/cvs.c:198
msgid "Add to CVS" msgid "Add to CVS"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:200 #: ../src/plugins/cvs.c:201
msgid "Run make" msgid "Run make"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:325 ../src/plugins/cvs.c:394 #: ../src/plugins/cvs.c:326 ../src/plugins/cvs.c:395
msgid "Not a CVS repository" msgid "Not a CVS repository"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:417 #: ../src/plugins/cvs.c:418
msgid "Not managed by CVS" msgid "Not managed by CVS"
msgstr "" msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-26 13:04+0200\n" "POT-Creation-Date: 2011-07-26 14:31+0200\n"
"PO-Revision-Date: 2010-03-29 23:28+0200\n" "PO-Revision-Date: 2010-03-29 23:28+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: French\n" "Language-Team: French\n"
@ -740,47 +740,47 @@ msgstr "Usage: view fichier...\n"
msgid "CVS" msgid "CVS"
msgstr "CVS" msgstr "CVS"
#: ../src/plugins/cvs.c:161 #: ../src/plugins/cvs.c:162
msgid "Root:" msgid "Root:"
msgstr "Racine :" msgstr "Racine :"
#: ../src/plugins/cvs.c:163 #: ../src/plugins/cvs.c:164
msgid "Repository:" msgid "Repository:"
msgstr "Dépôt :" msgstr "Dépôt :"
#: ../src/plugins/cvs.c:165 #: ../src/plugins/cvs.c:166
msgid "Tag:" msgid "Tag:"
msgstr "Tag :" msgstr "Tag :"
#: ../src/plugins/cvs.c:167 ../src/plugins/cvs.c:184 #: ../src/plugins/cvs.c:168 ../src/plugins/cvs.c:185
msgid "Request diff" msgid "Request diff"
msgstr "Différences" msgstr "Différences"
#: ../src/plugins/cvs.c:170 ../src/plugins/cvs.c:187 #: ../src/plugins/cvs.c:171 ../src/plugins/cvs.c:188
msgid "Update" msgid "Update"
msgstr "Actualiser" msgstr "Actualiser"
#: ../src/plugins/cvs.c:173 ../src/plugins/cvs.c:190 #: ../src/plugins/cvs.c:174 ../src/plugins/cvs.c:191
msgid "Commit" msgid "Commit"
msgstr "Soumettre" msgstr "Soumettre"
#: ../src/plugins/cvs.c:182 #: ../src/plugins/cvs.c:183
msgid "Revision:" msgid "Revision:"
msgstr "Révision :" msgstr "Révision :"
#: ../src/plugins/cvs.c:197 #: ../src/plugins/cvs.c:198
msgid "Add to CVS" msgid "Add to CVS"
msgstr "Ajouter à CVS" msgstr "Ajouter à CVS"
#: ../src/plugins/cvs.c:200 #: ../src/plugins/cvs.c:201
msgid "Run make" msgid "Run make"
msgstr "Exécuter make" msgstr "Exécuter make"
#: ../src/plugins/cvs.c:325 ../src/plugins/cvs.c:394 #: ../src/plugins/cvs.c:326 ../src/plugins/cvs.c:395
msgid "Not a CVS repository" msgid "Not a CVS repository"
msgstr "Pas un dépôt CVS" msgstr "Pas un dépôt CVS"
#: ../src/plugins/cvs.c:417 #: ../src/plugins/cvs.c:418
msgid "Not managed by CVS" msgid "Not managed by CVS"
msgstr "Pas maintenu par CVS" msgstr "Pas maintenu par CVS"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: Browser 0.1.4\n" "Project-Id-Version: Browser 0.1.4\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-07-26 13:04+0200\n" "POT-Creation-Date: 2011-07-26 14:31+0200\n"
"PO-Revision-Date: 2010-04-07 23:18+0200\n" "PO-Revision-Date: 2010-04-07 23:18+0200\n"
"Last-Translator: Pierre Pronchery <khorben@defora.org>\n" "Last-Translator: Pierre Pronchery <khorben@defora.org>\n"
"Language-Team: Italian\n" "Language-Team: Italian\n"
@ -706,47 +706,47 @@ msgstr ""
msgid "CVS" msgid "CVS"
msgstr "CVS" msgstr "CVS"
#: ../src/plugins/cvs.c:161 #: ../src/plugins/cvs.c:162
msgid "Root:" msgid "Root:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:163 #: ../src/plugins/cvs.c:164
msgid "Repository:" msgid "Repository:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:165 #: ../src/plugins/cvs.c:166
msgid "Tag:" msgid "Tag:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:167 ../src/plugins/cvs.c:184 #: ../src/plugins/cvs.c:168 ../src/plugins/cvs.c:185
msgid "Request diff" msgid "Request diff"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:170 ../src/plugins/cvs.c:187 #: ../src/plugins/cvs.c:171 ../src/plugins/cvs.c:188
msgid "Update" msgid "Update"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:173 ../src/plugins/cvs.c:190 #: ../src/plugins/cvs.c:174 ../src/plugins/cvs.c:191
msgid "Commit" msgid "Commit"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:182 #: ../src/plugins/cvs.c:183
msgid "Revision:" msgid "Revision:"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:197 #: ../src/plugins/cvs.c:198
msgid "Add to CVS" msgid "Add to CVS"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:200 #: ../src/plugins/cvs.c:201
msgid "Run make" msgid "Run make"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:325 ../src/plugins/cvs.c:394 #: ../src/plugins/cvs.c:326 ../src/plugins/cvs.c:395
msgid "Not a CVS repository" msgid "Not a CVS repository"
msgstr "" msgstr ""
#: ../src/plugins/cvs.c:417 #: ../src/plugins/cvs.c:418
msgid "Not managed by CVS" msgid "Not managed by CVS"
msgstr "" msgstr ""

View File

@ -133,6 +133,7 @@ static GtkWidget * _cvs_init(BrowserPlugin * plugin)
CVS * cvs; CVS * cvs;
PangoFontDescription * font; PangoFontDescription * font;
GtkSizeGroup * group; GtkSizeGroup * group;
GtkSizeGroup * bgroup;
GtkWidget * widget; GtkWidget * widget;
if((cvs = object_new(sizeof(*cvs))) == NULL) if((cvs = object_new(sizeof(*cvs))) == NULL)
@ -145,6 +146,7 @@ static GtkWidget * _cvs_init(BrowserPlugin * plugin)
font = pango_font_description_new(); font = pango_font_description_new();
pango_font_description_set_weight(font, PANGO_WEIGHT_BOLD); pango_font_description_set_weight(font, PANGO_WEIGHT_BOLD);
group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL); group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
bgroup = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
/* label */ /* label */
cvs->name = gtk_label_new(""); cvs->name = gtk_label_new("");
gtk_label_set_ellipsize(GTK_LABEL(cvs->name), PANGO_ELLIPSIZE_MIDDLE); gtk_label_set_ellipsize(GTK_LABEL(cvs->name), PANGO_ELLIPSIZE_MIDDLE);
@ -155,7 +157,6 @@ static GtkWidget * _cvs_init(BrowserPlugin * plugin)
gtk_label_set_ellipsize(GTK_LABEL(cvs->status), PANGO_ELLIPSIZE_END); gtk_label_set_ellipsize(GTK_LABEL(cvs->status), PANGO_ELLIPSIZE_END);
gtk_misc_set_alignment(GTK_MISC(cvs->status), 0.0, 0.5); gtk_misc_set_alignment(GTK_MISC(cvs->status), 0.0, 0.5);
gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->status, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->status, FALSE, TRUE, 0);
group = gtk_size_group_new(GTK_SIZE_GROUP_HORIZONTAL);
/* directory */ /* directory */
cvs->directory = gtk_vbox_new(FALSE, 4); cvs->directory = gtk_vbox_new(FALSE, 4);
widget = _init_label(group, _("Root:"), &cvs->d_root); widget = _init_label(group, _("Root:"), &cvs->d_root);
@ -164,13 +165,13 @@ static GtkWidget * _cvs_init(BrowserPlugin * plugin)
gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0);
widget = _init_label(group, _("Tag:"), &cvs->d_tag); widget = _init_label(group, _("Tag:"), &cvs->d_tag);
gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0);
widget = _init_button(group, NULL, _("Request diff"), G_CALLBACK( widget = _init_button(bgroup, NULL, _("Request diff"), G_CALLBACK(
_cvs_on_diff), plugin); _cvs_on_diff), plugin);
gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0);
widget = _init_button(group, GTK_STOCK_REFRESH, _("Update"), G_CALLBACK( widget = _init_button(bgroup, GTK_STOCK_REFRESH, _("Update"),
_cvs_on_update), plugin); G_CALLBACK(_cvs_on_update), plugin);
gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0);
widget = _init_button(group, NULL, _("Commit"), G_CALLBACK( widget = _init_button(bgroup, NULL, _("Commit"), G_CALLBACK(
_cvs_on_commit), plugin); _cvs_on_commit), plugin);
gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->directory), widget, FALSE, TRUE, 0);
gtk_widget_show_all(cvs->directory); gtk_widget_show_all(cvs->directory);
@ -181,23 +182,23 @@ static GtkWidget * _cvs_init(BrowserPlugin * plugin)
cvs->file = gtk_vbox_new(FALSE, 4); cvs->file = gtk_vbox_new(FALSE, 4);
widget = _init_label(group, _("Revision:"), &cvs->f_revision); widget = _init_label(group, _("Revision:"), &cvs->f_revision);
gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0);
widget = _init_button(group, NULL, _("Request diff"), G_CALLBACK( widget = _init_button(bgroup, NULL, _("Request diff"), G_CALLBACK(
_cvs_on_diff), plugin); _cvs_on_diff), plugin);
gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0);
widget = _init_button(group, GTK_STOCK_REFRESH, _("Update"), G_CALLBACK( widget = _init_button(bgroup, GTK_STOCK_REFRESH, _("Update"),
_cvs_on_update), plugin); G_CALLBACK(_cvs_on_update), plugin);
gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0);
widget = _init_button(group, NULL, _("Commit"), G_CALLBACK( widget = _init_button(bgroup, NULL, _("Commit"), G_CALLBACK(
_cvs_on_commit), plugin); _cvs_on_commit), plugin);
gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->file), widget, FALSE, TRUE, 0);
gtk_widget_show_all(cvs->file); gtk_widget_show_all(cvs->file);
gtk_widget_set_no_show_all(cvs->file, TRUE); gtk_widget_set_no_show_all(cvs->file, TRUE);
gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->file, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->file, FALSE, TRUE, 0);
/* additional actions */ /* additional actions */
cvs->add = _init_button(group, GTK_STOCK_ADD, _("Add to CVS"), cvs->add = _init_button(bgroup, GTK_STOCK_ADD, _("Add to CVS"),
G_CALLBACK(_cvs_on_add), plugin); G_CALLBACK(_cvs_on_add), plugin);
gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->add, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->add, FALSE, TRUE, 0);
cvs->make = _init_button(group, GTK_STOCK_EXECUTE, _("Run make"), cvs->make = _init_button(bgroup, GTK_STOCK_EXECUTE, _("Run make"),
G_CALLBACK(_cvs_on_make), plugin); G_CALLBACK(_cvs_on_make), plugin);
gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->make, FALSE, TRUE, 0); gtk_box_pack_start(GTK_BOX(cvs->widget), cvs->make, FALSE, TRUE, 0);
gtk_widget_show_all(cvs->widget); gtk_widget_show_all(cvs->widget);