mirror of https://github.com/GNOME/gimp.git
plug-ins/common/sel_gauss.c place the preview widget into the upper left
2004-08-12 Sven Neumann <sven@gimp.org> * plug-ins/common/sel_gauss.c * plug-ins/common/unsharp.c: place the preview widget into the upper left corner like all other plug-ins do. * plug-ins/help/domain.c: added some (disabled) debug output.
This commit is contained in:
parent
8f394a5f66
commit
45d77a3aaa
|
@ -1,3 +1,11 @@
|
|||
2004-08-12 Sven Neumann <sven@gimp.org>
|
||||
|
||||
* plug-ins/common/sel_gauss.c
|
||||
* plug-ins/common/unsharp.c: place the preview widget into the
|
||||
upper left corner like all other plug-ins do.
|
||||
|
||||
* plug-ins/help/domain.c: added some (disabled) debug output.
|
||||
|
||||
2004-08-12 DindinX <david@dindinx.org>
|
||||
|
||||
* plug-ins/common/sel_gauss.c: added a preview.
|
||||
|
|
|
@ -58,12 +58,12 @@ static void sel_gauss (GimpDrawable *drawable,
|
|||
gdouble radius,
|
||||
gint maxdelta);
|
||||
static gboolean sel_gauss_dialog (GimpDrawable *drawable);
|
||||
static void preview_update_real (GimpDrawable *drawable,
|
||||
gboolean apply_effect);
|
||||
static void preview_update_real (GimpDrawable *drawable,
|
||||
gboolean apply_effect);
|
||||
static void preview_move (GimpDrawable *drawable);
|
||||
static gboolean preview_button_release (GimpDrawable *drawable);
|
||||
static void preview_toggle_callback (GtkWidget *toggle,
|
||||
GimpDrawable *drawable);
|
||||
static void preview_toggle_callback (GtkWidget *toggle,
|
||||
GimpDrawable *drawable);
|
||||
|
||||
GimpPlugInInfo PLUG_IN_INFO =
|
||||
{
|
||||
|
@ -222,7 +222,8 @@ static gboolean
|
|||
sel_gauss_dialog (GimpDrawable *drawable)
|
||||
{
|
||||
GtkWidget *dlg;
|
||||
GtkWidget *alignment;
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *table;
|
||||
GtkWidget *frame;
|
||||
GtkWidget *scrollbar;
|
||||
|
@ -248,6 +249,12 @@ sel_gauss_dialog (GimpDrawable *drawable)
|
|||
|
||||
NULL);
|
||||
|
||||
vbox = gtk_vbox_new (FALSE, 12);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (vbox), 12);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), vbox,
|
||||
FALSE, FALSE, 0);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
/* preview stuff */
|
||||
gimp_drawable_mask_bounds (drawable->drawable_id, &x1, &y1, &x2, &y2);
|
||||
sel_width = x2 - x1;
|
||||
|
@ -255,13 +262,12 @@ sel_gauss_dialog (GimpDrawable *drawable)
|
|||
preview_width = MIN (sel_width, PREVIEW_SIZE);
|
||||
preview_height = MIN (sel_height, PREVIEW_SIZE);
|
||||
|
||||
alignment = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), alignment,
|
||||
FALSE, FALSE, 0);
|
||||
gtk_widget_show (alignment);
|
||||
hbox = gtk_hbox_new (FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
table = gtk_table_new (3, 2, FALSE);
|
||||
gtk_container_add (GTK_CONTAINER (alignment), table);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), table, FALSE, FALSE, 0);
|
||||
gtk_widget_show (table);
|
||||
|
||||
frame = gtk_frame_new (NULL);
|
||||
|
@ -330,9 +336,7 @@ sel_gauss_dialog (GimpDrawable *drawable)
|
|||
table = gtk_table_new (2, 3, FALSE);
|
||||
gtk_table_set_col_spacings (GTK_TABLE (table), 6);
|
||||
gtk_table_set_row_spacings (GTK_TABLE (table), 6);
|
||||
gtk_container_set_border_width (GTK_CONTAINER (table), 12);
|
||||
gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dlg)->vbox), table,
|
||||
TRUE, TRUE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), table, FALSE, FALSE, 0);
|
||||
|
||||
spinbutton = gimp_spin_button_new (&adj,
|
||||
bvals.radius, 0.0, G_MAXINT, 1.0, 5.0,
|
||||
|
|
|
@ -668,7 +668,7 @@ unsharp_preview_new (void)
|
|||
GtkObject *adj;
|
||||
GtkWidget *scrollbar;
|
||||
GtkWidget *preview_toggle;
|
||||
|
||||
|
||||
gint sel_width;
|
||||
gint sel_height;
|
||||
gint x1, y1, x2, y2;
|
||||
|
@ -750,7 +750,7 @@ unsharp_mask_dialog (void)
|
|||
GtkWidget *dialog;
|
||||
GtkWidget *table;
|
||||
GtkWidget *vbox;
|
||||
GtkWidget *aligment;
|
||||
GtkWidget *hbox;
|
||||
GtkWidget *scrollbar;
|
||||
GtkObject *adj;
|
||||
gboolean run;
|
||||
|
@ -772,12 +772,12 @@ unsharp_mask_dialog (void)
|
|||
FALSE, FALSE, 0);
|
||||
gtk_widget_show (vbox);
|
||||
|
||||
aligment = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), aligment, FALSE, FALSE, 0);
|
||||
gtk_widget_show (aligment);
|
||||
hbox = gtk_hbox_new (FALSE, 0);
|
||||
gtk_box_pack_start (GTK_BOX (vbox), hbox, FALSE, FALSE, 0);
|
||||
gtk_widget_show (hbox);
|
||||
|
||||
table = unsharp_preview_new ();
|
||||
gtk_container_add (GTK_CONTAINER (aligment), table);
|
||||
gtk_box_pack_start (GTK_BOX (hbox), table, FALSE, FALSE, 0);
|
||||
gtk_widget_show (table);
|
||||
|
||||
table = gtk_table_new (3, 3, FALSE);
|
||||
|
|
|
@ -370,6 +370,13 @@ domain_locale_parse (HelpDomain *domain,
|
|||
NULL);
|
||||
g_free (base_dir);
|
||||
|
||||
#ifdef GIMP_HELP_DEBUG
|
||||
g_printerr ("help (%s): parsing '%s' for domain \"%s\"\n",
|
||||
locale->locale_id,
|
||||
filename,
|
||||
domain->help_domain);
|
||||
#endif
|
||||
|
||||
io = g_io_channel_new_file (filename, "r", error);
|
||||
if (! io)
|
||||
{
|
||||
|
|
|
@ -370,6 +370,13 @@ domain_locale_parse (HelpDomain *domain,
|
|||
NULL);
|
||||
g_free (base_dir);
|
||||
|
||||
#ifdef GIMP_HELP_DEBUG
|
||||
g_printerr ("help (%s): parsing '%s' for domain \"%s\"\n",
|
||||
locale->locale_id,
|
||||
filename,
|
||||
domain->help_domain);
|
||||
#endif
|
||||
|
||||
io = g_io_channel_new_file (filename, "r", error);
|
||||
if (! io)
|
||||
{
|
||||
|
|
|
@ -370,6 +370,13 @@ domain_locale_parse (HelpDomain *domain,
|
|||
NULL);
|
||||
g_free (base_dir);
|
||||
|
||||
#ifdef GIMP_HELP_DEBUG
|
||||
g_printerr ("help (%s): parsing '%s' for domain \"%s\"\n",
|
||||
locale->locale_id,
|
||||
filename,
|
||||
domain->help_domain);
|
||||
#endif
|
||||
|
||||
io = g_io_channel_new_file (filename, "r", error);
|
||||
if (! io)
|
||||
{
|
||||
|
|
|
@ -370,6 +370,13 @@ domain_locale_parse (HelpDomain *domain,
|
|||
NULL);
|
||||
g_free (base_dir);
|
||||
|
||||
#ifdef GIMP_HELP_DEBUG
|
||||
g_printerr ("help (%s): parsing '%s' for domain \"%s\"\n",
|
||||
locale->locale_id,
|
||||
filename,
|
||||
domain->help_domain);
|
||||
#endif
|
||||
|
||||
io = g_io_channel_new_file (filename, "r", error);
|
||||
if (! io)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue