Commit 2ef9706b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

don't say we'd use MMX if it is disabled.

2002-11-06  Sven Neumann  <sven@gimp.org>

	* app/base/base.c (base_init): don't say we'd use MMX if it is
	disabled.

	* libgimpmodule/gimpmodule.[ch]
	* app/gui/module-browser.c: changed enum values and user-visible
	strings to saner values.

	* libgimpmodule/gimpmoduledb.c
	* plug-ins/tools/tool-safe-mode.c: made them less verbose.
parent 368afec4
2002-11-06 Sven Neumann <sven@gimp.org>
* app/base/base.c (base_init): don't say we'd use MMX if it is
disabled.
* libgimpmodule/gimpmodule.[ch]
* app/gui/module-browser.c: changed enum values and user-visible
strings to saner values.
* libgimpmodule/gimpmoduledb.c
* plug-ins/tools/tool-safe-mode.c: made them less verbose.
2002-11-06 Dave Neary <bolsh@gimp.org>
 
* plug-ins/common/png.c: Removed cruft from file,
......
......@@ -57,10 +57,12 @@ base_init (void)
gchar *swapfile;
gchar *path;
#ifdef ENABLE_MMX
#ifdef HAVE_ASM_MMX
use_mmx = use_mmx && (intel_cpu_features() & (1 << 23)) ? 1 : 0;
g_print ("using MMX: %s\n", use_mmx ? "yes" : "no");
#endif
#endif
#endif
toast_old_temp_files ();
......
......@@ -316,7 +316,7 @@ static void
browser_load_unload_callback (GtkWidget *widget,
ModuleBrowser *browser)
{
if (browser->last_update->state != GIMP_MODULE_STATE_LOADED_OK)
if (browser->last_update->state != GIMP_MODULE_STATE_LOADED)
{
if (browser->last_update->info)
{
......@@ -471,7 +471,7 @@ browser_info_update (GimpModuleDB *db,
{
case GIMP_MODULE_STATE_ERROR:
case GIMP_MODULE_STATE_LOAD_FAILED:
case GIMP_MODULE_STATE_UNLOADED_OK:
case GIMP_MODULE_STATE_NOT_LOADED:
if (module->info)
gtk_label_set_text (GTK_LABEL (browser->button_label), _("Load"));
else
......@@ -481,7 +481,7 @@ browser_info_update (GimpModuleDB *db,
module->on_disk);
break;
case GIMP_MODULE_STATE_LOADED_OK:
case GIMP_MODULE_STATE_LOADED:
gtk_label_set_text (GTK_LABEL (browser->button_label), _("Unload"));
gtk_widget_set_sensitive (GTK_WIDGET (browser->button), FALSE);
break;
......
......@@ -316,7 +316,7 @@ static void
browser_load_unload_callback (GtkWidget *widget,
ModuleBrowser *browser)
{
if (browser->last_update->state != GIMP_MODULE_STATE_LOADED_OK)
if (browser->last_update->state != GIMP_MODULE_STATE_LOADED)
{
if (browser->last_update->info)
{
......@@ -471,7 +471,7 @@ browser_info_update (GimpModuleDB *db,
{
case GIMP_MODULE_STATE_ERROR:
case GIMP_MODULE_STATE_LOAD_FAILED:
case GIMP_MODULE_STATE_UNLOADED_OK:
case GIMP_MODULE_STATE_NOT_LOADED:
if (module->info)
gtk_label_set_text (GTK_LABEL (browser->button_label), _("Load"));
else
......@@ -481,7 +481,7 @@ browser_info_update (GimpModuleDB *db,
module->on_disk);
break;
case GIMP_MODULE_STATE_LOADED_OK:
case GIMP_MODULE_STATE_LOADED:
gtk_label_set_text (GTK_LABEL (browser->button_label), _("Unload"));
gtk_widget_set_sensitive (GTK_WIDGET (browser->button), FALSE);
break;
......
2002-11-06 Sven Neumann <sven@gimp.org>
* libgimpcolor/libgimpcolor-sections.txt
* libgimpcolor/tmpl/gimpadaptivesupersample.sgml
* libgimpcolor/tmpl/gimpbilinear.sgml
* libgimpcolor/tmpl/gimpcolorspace.sgml
* libgimpcolor/tmpl/gimphsv.sgml
* libgimpcolor/tmpl/gimprgb.sgml
* libgimpmath/libgimpmath-sections.txt
* libgimpmath/tmpl/gimpmath.sgml
* libgimpmath/tmpl/gimpmatrix.sgml
* libgimpmath/tmpl/gimpvector.sgml
* libgimpmodule/tmpl/gimpmodule.sgml
* libgimpwidgets/libgimpwidgets-docs.sgml
* libgimpwidgets/tmpl/gimpcolorscales.sgml
* libgimpwidgets/tmpl/gimpcolorselect.sgml: some minor changes to
make the docs more pleasant to look at.
2002-11-05 Michael Natterer <mitch@gimp.org>
* libgimpwidgets/tmpl/gimppickbutton.sgml: added GimpPickButton.
......
<SECTION>
<FILE>gimpcolorspace</FILE>
<TITLE>GimpColorSpace</TITLE>
gimp_rgb_to_hsv
gimp_rgb_to_hsl
gimp_hsv_to_rgb
......@@ -19,6 +20,7 @@ gimp_hsv_to_rgb4
<SECTION>
<FILE>gimphsv</FILE>
<TITLE>GimpHSV</TITLE>
GimpHSV
gimp_hsv_set
gimp_hsv_clamp
......@@ -27,6 +29,7 @@ gimp_hsva_set
<SECTION>
<FILE>gimprgb</FILE>
<TITLE>GimpRGB</TITLE>
GimpRGB
GimpRGBCompositeMode
gimp_rgb_set
......@@ -59,6 +62,7 @@ INTENSITY
<SECTION>
<FILE>gimpadaptivesupersample</FILE>
<TITLE>GimpAdaptiveSupersample</TITLE>
GimpProgressFunc
GimpPutPixelFunc
GimpRenderFunc
......@@ -67,6 +71,7 @@ gimp_adaptive_supersample_area
<SECTION>
<FILE>gimpbilinear</FILE>
<TITLE>GimpBilinear</TITLE>
gimp_bilinear
gimp_bilinear_8
gimp_bilinear_16
......
<!-- ##### SECTION Title ##### -->
gimpadaptivesupersample
GimpAdaptiveSupersample
<!-- ##### SECTION Short_Description ##### -->
......
<!-- ##### SECTION Title ##### -->
gimpbilinear
GimpBilinear
<!-- ##### SECTION Short_Description ##### -->
......
<!-- ##### SECTION Title ##### -->
gimpcolorspace
GimpColorSpace
<!-- ##### SECTION Short_Description ##### -->
Utility functions which convert colors between different color models.
......
<!-- ##### SECTION Title ##### -->
gimphsv
GimpHSV
<!-- ##### SECTION Short_Description ##### -->
......
<!-- ##### SECTION Title ##### -->
gimprgb
GimpRGB
<!-- ##### SECTION Short_Description ##### -->
......
<SECTION>
<FILE>gimpmath</FILE>
<TITLE>GimpMath</TITLE>
G_MAXRAND
RINT
ROUND
......@@ -18,6 +19,7 @@ gimp_md5_get_digest
<SECTION>
<FILE>gimpmatrix</FILE>
<TITLE>GimpMatrix</TITLE>
GimpMatrix3[3][3]
GimpMatrix4[4][4]
gimp_matrix3_transform_point
......@@ -39,6 +41,7 @@ gimp_matrix4_to_deg
<SECTION>
<FILE>gimpvector</FILE>
<TITLE>GimpVector</TITLE>
GimpVector2
GimpVector3
GimpVector4
......
<!-- ##### SECTION Title ##### -->
gimpmath
GimpMath
<!-- ##### SECTION Short_Description ##### -->
Mathematical definitions and macros.
......
<!-- ##### SECTION Title ##### -->
gimpmatrix
GimpMatrix
<!-- ##### SECTION Short_Description ##### -->
Utilities to set up and manipulate 3x3 transformation matrices.
......
<!-- ##### SECTION Title ##### -->
gimpvector
GimpVector
<!-- ##### SECTION Short_Description ##### -->
Utilities to set up and manipulate vectors.
......
......@@ -40,9 +40,9 @@ Common definitions for creating a pluggable GIMP module.
</para>
@GIMP_MODULE_STATE_ERROR:
@GIMP_MODULE_STATE_LOADED_OK:
@GIMP_MODULE_STATE_LOADED:
@GIMP_MODULE_STATE_LOAD_FAILED:
@GIMP_MODULE_STATE_UNLOADED_OK:
@GIMP_MODULE_STATE_NOT_LOADED:
<!-- ##### USER_FUNCTION GimpModuleQueryFunc ##### -->
<para>
......
......@@ -35,6 +35,7 @@
&GimpColorScale;
&GimpFileSelection;
&GimpPathEditor;
&GimpPickButton;
&GimpPixmap;
&GimpSizeEntry;
&GimpUnitMenu;
......@@ -51,7 +52,6 @@
&GimpColorNotebook;
&GimpColorScales;
&GimpColorSelect;
&GimpPickButton;
</chapter>
</part>
......
<!-- ##### SECTION Title ##### -->
gimpcolorscales
GimpColorScales
<!-- ##### SECTION Short_Description ##### -->
......
<!-- ##### SECTION Title ##### -->
gimpcolorselect
GimpColorSelect
<!-- ##### SECTION Short_Description ##### -->
......
......@@ -212,7 +212,7 @@ gimp_module_load (GTypeModule *module)
return FALSE;
}
gimp_module->state = GIMP_MODULE_STATE_LOADED_OK;
gimp_module->state = GIMP_MODULE_STATE_LOADED;
return TRUE;
}
......@@ -259,7 +259,7 @@ gimp_module_new (const gchar *filename,
if (verbose)
g_print (_("Skipping module: '%s'\n"), filename);
module->state = GIMP_MODULE_STATE_UNLOADED_OK;
module->state = GIMP_MODULE_STATE_NOT_LOADED;
}
return module;
......@@ -285,7 +285,8 @@ gimp_module_query_module (GimpModule *module)
/* find the gimp_module_query symbol */
if (! g_module_symbol (module->module, "gimp_module_query", &symbol))
{
gimp_module_set_last_error (module, "Missing gimp_module_query() symbol");
gimp_module_set_last_error (module,
"Missing gimp_module_query() symbol");
if (module->verbose)
g_print (_("Module '%s' load error:\n%s"),
......@@ -360,13 +361,13 @@ gimp_module_state_name (GimpModuleState state)
static const gchar * const statenames[] =
{
N_("Module error"),
N_("Loaded OK"),
N_("Loaded"),
N_("Load failed"),
N_("Unloaded OK")
N_("Not loaded")
};
g_return_val_if_fail (state >= GIMP_MODULE_STATE_ERROR &&
state <= GIMP_MODULE_STATE_UNLOADED_OK, NULL);
state <= GIMP_MODULE_STATE_NOT_LOADED, NULL);
return gettext (statenames[state]);
}
......@@ -398,7 +399,7 @@ gimp_module_close (GimpModule *module)
module->query_module = NULL;
module->register_module = NULL;
module->state = GIMP_MODULE_STATE_UNLOADED_OK;
module->state = GIMP_MODULE_STATE_NOT_LOADED;
return TRUE;
}
......
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