Commit c64eb45e authored by GMT 1999  Austin Donnelly's avatar GMT 1999 Austin Donnelly Committed by Austin Donnelly

fix button resize behaviour. Closes Bug#3350. Also, i18n stuff for state

Sun Nov  7 15:41:07 GMT 1999  Austin Donnelly  <austin@gimp.org>

	* app/module_db.c: fix button resize behaviour.  Closes Bug#3350.
	    Also, i18n stuff for state names, and make them a little
	    prettier.
parent a265c91c
Sun Nov 7 15:41:07 GMT 1999 Austin Donnelly <austin@gimp.org>
* app/module_db.c: fix button resize behaviour. Closes Bug#3350.
Also, i18n stuff for state names, and make them a little
prettier.
Sat Nov 6 19:16:57 *ET 1999 Sven Neumann <sven@gimp.org> Sat Nov 6 19:16:57 *ET 1999 Sven Neumann <sven@gimp.org>
* app/about_dialog.c * app/about_dialog.c
......
...@@ -55,11 +55,11 @@ typedef enum { ...@@ -55,11 +55,11 @@ typedef enum {
} module_state; } module_state;
static const char * const statename[] = { static const char * const statename[] = {
"ST_MODULE_ERROR", N_("Module error"),
"ST_LOADED_OK", N_("Loaded OK"),
"ST_LOAD_FAILED", N_("Load failed"),
"ST_UNLOAD_REQUESTED", N_("Unload requested"),
"ST_UNLOADED_OK" N_("Unloaded OK")
}; };
#ifdef __EMX__ #ifdef __EMX__
...@@ -302,9 +302,11 @@ module_db_browser_new (void) ...@@ -302,9 +302,11 @@ module_db_browser_new (void)
gtk_box_pack_start (GTK_BOX (vbox), st->table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), st->table, FALSE, FALSE, 0);
gtk_widget_show (st->table); gtk_widget_show (st->table);
hbox = gtk_hbox_new (FALSE, 10); hbox = gtk_hbutton_box_new ();
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_SPREAD);
gtk_widget_show (hbox); gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, FALSE, 5);
button = gtk_button_new_with_label (_("Refresh")); button = gtk_button_new_with_label (_("Refresh"));
gtk_widget_show (button); gtk_widget_show (button);
...@@ -788,11 +790,11 @@ browser_info_update (module_info *mod, ...@@ -788,11 +790,11 @@ browser_info_update (module_info *mod,
if (mod->state == ST_MODULE_ERROR && mod->last_module_error) if (mod->state == ST_MODULE_ERROR && mod->last_module_error)
status = g_strdup_printf ("%s (%s)", statename[mod->state], status = g_strdup_printf ("%s (%s)", gettext (statename[mod->state]),
mod->last_module_error); mod->last_module_error);
else else
{ {
status = g_strdup (statename[mod->state]); status = g_strdup (gettext (statename[mod->state]));
} }
for (i=0; i < NUM_INFO_LINES - 1; i++) for (i=0; i < NUM_INFO_LINES - 1; i++)
......
...@@ -55,11 +55,11 @@ typedef enum { ...@@ -55,11 +55,11 @@ typedef enum {
} module_state; } module_state;
static const char * const statename[] = { static const char * const statename[] = {
"ST_MODULE_ERROR", N_("Module error"),
"ST_LOADED_OK", N_("Loaded OK"),
"ST_LOAD_FAILED", N_("Load failed"),
"ST_UNLOAD_REQUESTED", N_("Unload requested"),
"ST_UNLOADED_OK" N_("Unloaded OK")
}; };
#ifdef __EMX__ #ifdef __EMX__
...@@ -302,9 +302,11 @@ module_db_browser_new (void) ...@@ -302,9 +302,11 @@ module_db_browser_new (void)
gtk_box_pack_start (GTK_BOX (vbox), st->table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), st->table, FALSE, FALSE, 0);
gtk_widget_show (st->table); gtk_widget_show (st->table);
hbox = gtk_hbox_new (FALSE, 10); hbox = gtk_hbutton_box_new ();
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_SPREAD);
gtk_widget_show (hbox); gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, FALSE, 5);
button = gtk_button_new_with_label (_("Refresh")); button = gtk_button_new_with_label (_("Refresh"));
gtk_widget_show (button); gtk_widget_show (button);
...@@ -788,11 +790,11 @@ browser_info_update (module_info *mod, ...@@ -788,11 +790,11 @@ browser_info_update (module_info *mod,
if (mod->state == ST_MODULE_ERROR && mod->last_module_error) if (mod->state == ST_MODULE_ERROR && mod->last_module_error)
status = g_strdup_printf ("%s (%s)", statename[mod->state], status = g_strdup_printf ("%s (%s)", gettext (statename[mod->state]),
mod->last_module_error); mod->last_module_error);
else else
{ {
status = g_strdup (statename[mod->state]); status = g_strdup (gettext (statename[mod->state]));
} }
for (i=0; i < NUM_INFO_LINES - 1; i++) for (i=0; i < NUM_INFO_LINES - 1; i++)
......
...@@ -55,11 +55,11 @@ typedef enum { ...@@ -55,11 +55,11 @@ typedef enum {
} module_state; } module_state;
static const char * const statename[] = { static const char * const statename[] = {
"ST_MODULE_ERROR", N_("Module error"),
"ST_LOADED_OK", N_("Loaded OK"),
"ST_LOAD_FAILED", N_("Load failed"),
"ST_UNLOAD_REQUESTED", N_("Unload requested"),
"ST_UNLOADED_OK" N_("Unloaded OK")
}; };
#ifdef __EMX__ #ifdef __EMX__
...@@ -302,9 +302,11 @@ module_db_browser_new (void) ...@@ -302,9 +302,11 @@ module_db_browser_new (void)
gtk_box_pack_start (GTK_BOX (vbox), st->table, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), st->table, FALSE, FALSE, 0);
gtk_widget_show (st->table); gtk_widget_show (st->table);
hbox = gtk_hbox_new (FALSE, 10); hbox = gtk_hbutton_box_new ();
gtk_button_box_set_layout (GTK_BUTTON_BOX (hbox), GTK_BUTTONBOX_SPREAD);
gtk_widget_show (hbox); gtk_widget_show (hbox);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 5); gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, FALSE, 5);
button = gtk_button_new_with_label (_("Refresh")); button = gtk_button_new_with_label (_("Refresh"));
gtk_widget_show (button); gtk_widget_show (button);
...@@ -788,11 +790,11 @@ browser_info_update (module_info *mod, ...@@ -788,11 +790,11 @@ browser_info_update (module_info *mod,
if (mod->state == ST_MODULE_ERROR && mod->last_module_error) if (mod->state == ST_MODULE_ERROR && mod->last_module_error)
status = g_strdup_printf ("%s (%s)", statename[mod->state], status = g_strdup_printf ("%s (%s)", gettext (statename[mod->state]),
mod->last_module_error); mod->last_module_error);
else else
{ {
status = g_strdup (statename[mod->state]); status = g_strdup (gettext (statename[mod->state]));
} }
for (i=0; i < NUM_INFO_LINES - 1; i++) for (i=0; i < NUM_INFO_LINES - 1; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment