Commit 06631e95 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

libgimpwidgets/Makefile.am libgimpwidgets/gimpwidgets.h

2004-05-02  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/Makefile.am
	* libgimpwidgets/gimpwidgets.h
	* libgimpwidgets/gimpwidgetstypes.h
	* libgimpwidgets/gimpframe.[ch]: added new widget GimpFrame, a HIG
	compliant variant of GtkFrame.

	* app/gui/preferences-dialog.c: enable the HIG compliant mode by
	default and use the new GimpFrame widget for it.

	* themes/Small/gtkrc: set a smaller spacing between the GimpFrame
	title label and the frame content.

2004-05-02  Sven Neumann  <sven@gimp.org>

	* libgimpwidgets/libgimpwidgets-docs.sgml
	* libgimpwidgets/libgimpwidgets-sections.txt
	* libgimpwidgets/libgimpwidgets.types
	* libgimpwidgets/tmpl/gimpframe.sgml: added docs for GimpFrame.

	* */tmpl/*.sgml: regenerated using gtk-doc-tools version 1.2.
parent 8895917d
2004-05-02 Sven Neumann <sven@gimp.org>
* libgimpwidgets/Makefile.am
* libgimpwidgets/gimpwidgets.h
* libgimpwidgets/gimpwidgetstypes.h
* libgimpwidgets/gimpframe.[ch]: added new widget GimpFrame, a HIG
compliant variant of GtkFrame.
* app/gui/preferences-dialog.c: enable the HIG compliant mode by
default and use the new GimpFrame widget for it.
* themes/Small/gtkrc: set a smaller spacing between the GimpFrame
title label and the frame content.
2004-05-02 Michael Natterer <mitch@gimp.org>
* app/actions/qmask-actions.c: renamed action "qmask-toggle" to
......
......@@ -258,9 +258,6 @@ prefs_response (GtkWidget *widget,
gimp_rc_save (GIMP_RC (gimp->edit_config));
/* enable autosaving again */
gimp_rc_set_autosave (GIMP_RC (gimp->edit_config), TRUE);
/* spit out a solely informational warning about changed values
* which need restart
*/
......@@ -330,11 +327,11 @@ prefs_response (GtkWidget *widget,
g_object_thaw_notify (G_OBJECT (gimp->edit_config));
g_list_free (diff);
/* enable autosaving again */
gimp_rc_set_autosave (GIMP_RC (gimp->edit_config), TRUE);
}
/* enable autosaving again */
gimp_rc_set_autosave (GIMP_RC (gimp->edit_config), TRUE);
gtk_widget_destroy (dialog);
}
......@@ -407,10 +404,10 @@ static void
prefs_input_devices_dialog (GtkWidget *widget,
gpointer user_data)
{
Gimp *gimp = GIMP (user_data);
static GtkWidget *input_dialog = NULL;
Gimp *gimp = GIMP (user_data);
if (input_dialog)
{
gtk_window_present (GTK_WINDOW (input_dialog));
......@@ -477,7 +474,7 @@ prefs_notebook_append_page (Gimp *gimp,
gimp_help_set_help_data (event_box, NULL, help_id);
vbox = gtk_vbox_new (FALSE, 6);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_container_add (GTK_CONTAINER (event_box), vbox);
gtk_widget_show (vbox);
......@@ -604,51 +601,16 @@ prefs_frame_new (const gchar *label,
GtkContainer *parent,
gboolean expand)
{
GtkWidget *frame;
GtkWidget *vbox;
gboolean hig_compliant = FALSE;
const gboolean hig_compliant = TRUE;
GtkWidget *frame;
GtkWidget *vbox;
if (hig_compliant)
{
GtkWidget *hbox;
GtkWidget *title;
GtkWidget *space;
PangoAttrList *attrs;
PangoAttribute *attr;
frame = gtk_vbox_new (FALSE, 4);
attrs = pango_attr_list_new ();
attr = pango_attr_scale_new (PANGO_SCALE_LARGE);
attr->start_index = 0;
attr->end_index = -1;
pango_attr_list_insert (attrs, attr);
frame = gimp_frame_new (label);
attr = pango_attr_weight_new (PANGO_WEIGHT_BOLD);
attr->start_index = 0;
attr->end_index = -1;
pango_attr_list_insert (attrs, attr);
title = gtk_label_new (label);
gtk_misc_set_alignment (GTK_MISC (title), 0.0, 0.5);
gtk_label_set_attributes (GTK_LABEL (title), attrs);
gtk_box_pack_start (GTK_BOX (frame), title, FALSE, FALSE, 0);
gtk_widget_show (title);
pango_attr_list_unref (attrs);
hbox = gtk_hbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_widget_show (hbox);
space = gtk_label_new (" ");
gtk_box_pack_start (GTK_BOX (hbox), space, FALSE, FALSE, 0);
gtk_widget_show (space);
vbox = gtk_vbox_new (FALSE, 2);
gtk_container_add (GTK_CONTAINER (hbox), vbox);
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_widget_show (vbox);
}
else
......@@ -836,7 +798,7 @@ prefs_spin_button_add (GObject *config,
GtkTable *table,
gint table_row)
{
GtkWidget *spinbutton;
GtkWidget *spinbutton;
spinbutton = gimp_prop_spin_button_new (config, property_name,
step_increment, page_increment,
......@@ -1239,7 +1201,8 @@ prefs_dialog_new (Gimp *gimp,
GTK_TABLE (table), 3);
/* Keyboard Shortcuts */
vbox2 = prefs_frame_new (_("Keyboard Shortcuts"), GTK_CONTAINER (vbox), FALSE);
vbox2 = prefs_frame_new (_("Keyboard Shortcuts"),
GTK_CONTAINER (vbox), FALSE);
prefs_check_button_add (object, "can-change-accels",
_("Use Dynamic _Keyboard Shortcuts"),
......
......@@ -258,9 +258,6 @@ prefs_response (GtkWidget *widget,
gimp_rc_save (GIMP_RC (gimp->edit_config));
/* enable autosaving again */
gimp_rc_set_autosave (GIMP_RC (gimp->edit_config), TRUE);
/* spit out a solely informational warning about changed values
* which need restart
*/
......@@ -330,11 +327,11 @@ prefs_response (GtkWidget *widget,
g_object_thaw_notify (G_OBJECT (gimp->edit_config));
g_list_free (diff);
/* enable autosaving again */
gimp_rc_set_autosave (GIMP_RC (gimp->edit_config), TRUE);
}
/* enable autosaving again */
gimp_rc_set_autosave (GIMP_RC (gimp->edit_config), TRUE);
gtk_widget_destroy (dialog);
}
......@@ -407,10 +404,10 @@ static void
prefs_input_devices_dialog (GtkWidget *widget,
gpointer user_data)
{
Gimp *gimp = GIMP (user_data);
static GtkWidget *input_dialog = NULL;
Gimp *gimp = GIMP (user_data);
if (input_dialog)
{
gtk_window_present (GTK_WINDOW (input_dialog));
......@@ -477,7 +474,7 @@ prefs_notebook_append_page (Gimp *gimp,
gimp_help_set_help_data (event_box, NULL, help_id);
vbox = gtk_vbox_new (FALSE, 6);
vbox = gtk_vbox_new (FALSE, 12);
gtk_container_set_border_width (GTK_CONTAINER (vbox), 6);
gtk_container_add (GTK_CONTAINER (event_box), vbox);
gtk_widget_show (vbox);
......@@ -604,51 +601,16 @@ prefs_frame_new (const gchar *label,
GtkContainer *parent,
gboolean expand)
{
GtkWidget *frame;
GtkWidget *vbox;
gboolean hig_compliant = FALSE;
const gboolean hig_compliant = TRUE;
GtkWidget *frame;
GtkWidget *vbox;
if (hig_compliant)
{
GtkWidget *hbox;
GtkWidget *title;
GtkWidget *space;
PangoAttrList *attrs;
PangoAttribute *attr;
frame = gtk_vbox_new (FALSE, 4);
attrs = pango_attr_list_new ();
attr = pango_attr_scale_new (PANGO_SCALE_LARGE);
attr->start_index = 0;
attr->end_index = -1;
pango_attr_list_insert (attrs, attr);
frame = gimp_frame_new (label);
attr = pango_attr_weight_new (PANGO_WEIGHT_BOLD);
attr->start_index = 0;
attr->end_index = -1;
pango_attr_list_insert (attrs, attr);
title = gtk_label_new (label);
gtk_misc_set_alignment (GTK_MISC (title), 0.0, 0.5);
gtk_label_set_attributes (GTK_LABEL (title), attrs);
gtk_box_pack_start (GTK_BOX (frame), title, FALSE, FALSE, 0);
gtk_widget_show (title);
pango_attr_list_unref (attrs);
hbox = gtk_hbox_new (FALSE, 0);
gtk_container_add (GTK_CONTAINER (frame), hbox);
gtk_widget_show (hbox);
space = gtk_label_new (" ");
gtk_box_pack_start (GTK_BOX (hbox), space, FALSE, FALSE, 0);
gtk_widget_show (space);
vbox = gtk_vbox_new (FALSE, 2);
gtk_container_add (GTK_CONTAINER (hbox), vbox);
vbox = gtk_vbox_new (FALSE, 6);
gtk_container_add (GTK_CONTAINER (frame), vbox);
gtk_widget_show (vbox);
}
else
......@@ -836,7 +798,7 @@ prefs_spin_button_add (GObject *config,
GtkTable *table,
gint table_row)
{
GtkWidget *spinbutton;
GtkWidget *spinbutton;
spinbutton = gimp_prop_spin_button_new (config, property_name,
step_increment, page_increment,
......@@ -1239,7 +1201,8 @@ prefs_dialog_new (Gimp *gimp,
GTK_TABLE (table), 3);
/* Keyboard Shortcuts */
vbox2 = prefs_frame_new (_("Keyboard Shortcuts"), GTK_CONTAINER (vbox), FALSE);
vbox2 = prefs_frame_new (_("Keyboard Shortcuts"),
GTK_CONTAINER (vbox), FALSE);
prefs_check_button_add (object, "can-change-accels",
_("Use Dynamic _Keyboard Shortcuts"),
......
2004-05-02 Sven Neumann <sven@gimp.org>
* libgimpwidgets/libgimpwidgets-docs.sgml
* libgimpwidgets/libgimpwidgets-sections.txt
* libgimpwidgets/libgimpwidgets.types
* libgimpwidgets/tmpl/gimpframe.sgml: added docs for GimpFrame.
* */tmpl/*.sgml: regenerated using gtk-doc-tools version 1.2.
2004-04-30 Sven Neumann <sven@gimp.org>
* libgimpbase/libgimpbase-sections.txt
......
......@@ -34,6 +34,13 @@ arbitrary #GType implementations loaded from disk.
@info:
@last_module_error:
<!-- ##### SIGNAL GimpModule::modified ##### -->
<para>
</para>
@gimpmodule: the object which received the signal.
<!-- ##### STRUCT GimpModuleInfo ##### -->
<para>
This structure contains information about a loadable module.
......@@ -179,10 +186,3 @@ are compiled against.
@info:
<!-- ##### SIGNAL GimpModule::modified ##### -->
<para>
</para>
@gimpmodule: the object which received the signal.
......@@ -20,6 +20,30 @@ The #GimpModuleDB struct contains no public members.
</para>
<!-- ##### SIGNAL GimpModuleDB::add ##### -->
<para>
</para>
@gimpmoduledb: the object which received the signal.
@arg1:
<!-- ##### SIGNAL GimpModuleDB::module-modified ##### -->
<para>
</para>
@gimpmoduledb: the object which received the signal.
@arg1:
<!-- ##### SIGNAL GimpModuleDB::remove ##### -->
<para>
</para>
@gimpmoduledb: the object which received the signal.
@arg1:
<!-- ##### FUNCTION gimp_module_db_new ##### -->
<para>
......@@ -65,27 +89,3 @@ The #GimpModuleDB struct contains no public members.
@module_path:
<!-- ##### SIGNAL GimpModuleDB::add ##### -->
<para>
</para>
@gimpmoduledb: the object which received the signal.
@arg1:
<!-- ##### SIGNAL GimpModuleDB::module-modified ##### -->
<para>
</para>
@gimpmoduledb: the object which received the signal.
@arg1:
<!-- ##### SIGNAL GimpModuleDB::remove ##### -->
<para>
</para>
@gimpmoduledb: the object which received the signal.
@arg1:
......@@ -21,6 +21,51 @@ using object properties.
</para>
<!-- ##### ARG GimpThumbnail:image-filesize ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-height ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-mtime ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-num-layers ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-state ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-type ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-uri ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-width ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:thumb-state ##### -->
<para>
</para>
<!-- ##### FUNCTION gimp_thumbnail_new ##### -->
<para>
......@@ -113,48 +158,3 @@ using object properties.
@Returns:
<!-- ##### ARG GimpThumbnail:image-filesize ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-height ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-mtime ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-num-layers ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-state ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-type ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-uri ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:image-width ##### -->
<para>
</para>
<!-- ##### ARG GimpThumbnail:thumb-state ##### -->
<para>
</para>
......@@ -27,6 +27,7 @@
<xi:include href="xml/gimpcolorselection.xml" />
<xi:include href="xml/gimpdialog.xml" />
<xi:include href="xml/gimpfileentry.xml" />
<xi:include href="xml/gimpframe.xml" />
<xi:include href="xml/gimpintcombobox.xml" />
<xi:include href="xml/gimpintstore.xml" />
<xi:include href="xml/gimpmemsizeentry.xml" />
......
......@@ -121,6 +121,22 @@ GIMP_IS_FILE_ENTRY_CLASS
GIMP_FILE_ENTRY_GET_CLASS
</SECTION>
<SECTION>
<FILE>gimpframe</FILE>
<TITLE>GimpFrame</TITLE>
GimpFrame
gimp_frame_new
<SUBSECTION Standard>
GimpFrameClass
GIMP_FRAME
GIMP_IS_FRAME
GIMP_TYPE_FRAME
gimp_frame_get_type
GIMP_FRAME_CLASS
GIMP_IS_FRAME_CLASS
GIMP_FRAME_GET_CLASS
</SECTION>
<SECTION>
<FILE>gimppatheditor</FILE>
<TITLE>GimpPathEditor</TITLE>
......
......@@ -18,6 +18,7 @@ gimp_color_select_get_type
gimp_color_selection_get_type
gimp_dialog_get_type
gimp_file_entry_get_type
gimp_frame_get_type
gimp_int_combo_box_get_type
gimp_int_store_get_type
gimp_memsize_entry_get_type
......
......@@ -22,6 +22,14 @@ modifier keys pressed.
</para>
<!-- ##### SIGNAL GimpButton::extended-clicked ##### -->
<para>
</para>
@gimpbutton: the object which received the signal.
@arg1: the state of modifier keys when the button was clicked
<!-- ##### FUNCTION gimp_button_new ##### -->
<para>
......@@ -39,11 +47,3 @@ modifier keys pressed.
@state:
<!-- ##### SIGNAL GimpButton::extended-clicked ##### -->
<para>
</para>
@gimpbutton: the object which received the signal.
@arg1: the state of modifier keys when the button was clicked
......@@ -32,6 +32,13 @@ up two GimpSizeEntries (see #GimpSizeEntry) linked with a #GimpChainButton.
</para>
<!-- ##### SIGNAL GimpChainButton::toggled ##### -->
<para>
</para>
@gimpchainbutton: the object which received the signal.
<!-- ##### ENUM GimpChainPosition ##### -->
<para>
......@@ -69,10 +76,3 @@ up two GimpSizeEntries (see #GimpSizeEntry) linked with a #GimpChainButton.
@Returns:
<!-- ##### SIGNAL GimpChainButton::toggled ##### -->
<para>
</para>
@gimpchainbutton: the object which received the signal.
......@@ -20,6 +20,13 @@ Displays a GimpRGB color, optionally with alpha-channel.
</para>
<!-- ##### SIGNAL GimpColorArea::color-changed ##### -->
<para>
</para>
@gimpcolorarea: the object which received the signal.
<!-- ##### ENUM GimpColorAreaType ##### -->
<para>
......@@ -85,10 +92,3 @@ Displays a GimpRGB color, optionally with alpha-channel.
@draw_border:
<!-- ##### SIGNAL GimpColorArea::color-changed ##### -->
<para>
</para>
@gimpcolorarea: the object which received the signal.
......@@ -27,6 +27,13 @@ color, the "color_changed" signal is emitted.
</para>
<!-- ##### SIGNAL GimpColorButton::color-changed ##### -->
<para>
</para>
@gimpcolorbutton: the object which received the signal.
<!-- ##### FUNCTION gimp_color_button_new ##### -->
<para>
......@@ -94,10 +101,3 @@ color, the "color_changed" signal is emitted.
@type:
<!-- ##### SIGNAL GimpColorButton::color-changed ##### -->
<para>
</para>
@gimpcolorbutton: the object which received the signal.
......@@ -27,6 +27,18 @@ display color correction modules.
</para>
<!-- ##### SIGNAL GimpColorDisplay::changed ##### -->
<para>
</para>
@gimpcolordisplay: the object which received the signal.
<!-- ##### ARG GimpColorDisplay:enabled ##### -->
<para>