Commit 092fb5a6 authored by CST 1998 Shawn T. Amundson's avatar CST 1998 Shawn T. Amundson Committed by Shawn Amundson

app/by_color_select.c: plug-ins/script-fu/script-fu-scripts.c:

Sat Dec 19 15:46:27 CST 1998 Shawn T. Amundson <amundson@gtk.org>

        * app/brush_edit.c:
          app/by_color_select.c:
          plug-ins/script-fu/script-fu-scripts.c:
          plug-ins/compose/compose.c:
          plug-ins/fp/fp.c:
          plug-ins/fp/fp_gdk.c:
          plug-ins/fp/fp_gtk.c:
          plug-ins/maze/maze_face.c: s/gtk_label_set/gtk_label_set_text/g
parent dc436e82
Sat Dec 19 15:46:27 CST 1998 Shawn T. Amundson <amundson@gtk.org>
* app/brush_edit.c:
app/by_color_select.c:
plug-ins/script-fu/script-fu-scripts.c:
plug-ins/compose/compose.c:
plug-ins/fp/fp.c:
plug-ins/fp/fp_gdk.c:
plug-ins/fp/fp_gtk.c:
plug-ins/maze/maze_face.c: s/gtk_label_set/gtk_label_set_text/g
Sun Dec 20 00:55:21 MET 1998 Sven Neumann <sven@gimp.org>
* app/rect_select.c: applied the second patch from Xach with
......
......@@ -132,7 +132,7 @@ brush_edit_brush_dirty_callback(GimpBrush *brush,
char str[255];
begw->scale = scale;
g_snprintf(str, 200, "%d:1", scale);
gtk_label_set(GTK_LABEL(begw->scale_label), str);
gtk_label_set_text(GTK_LABEL(begw->scale_label), str);
gtk_widget_draw(begw->scale_label, NULL);
}
gtk_widget_draw(begw->preview, NULL);
......
......@@ -805,7 +805,7 @@ by_color_select_draw (ByColorDialog *bcd,
gtk_widget_draw (bcd->preview, NULL);
/* Update the gimage label to reflect the displayed gimage name */
gtk_label_set (GTK_LABEL (bcd->gimage_name), prune_filename (gimage_filename (gimage)));
gtk_label_set_text (GTK_LABEL (bcd->gimage_name), prune_filename (gimage_filename (gimage)));
}
static gint
......
......@@ -132,7 +132,7 @@ brush_edit_brush_dirty_callback(GimpBrush *brush,
char str[255];
begw->scale = scale;
g_snprintf(str, 200, "%d:1", scale);
gtk_label_set(GTK_LABEL(begw->scale_label), str);
gtk_label_set_text(GTK_LABEL(begw->scale_label), str);
gtk_widget_draw(begw->scale_label, NULL);
}
gtk_widget_draw(begw->preview, NULL);
......
......@@ -805,7 +805,7 @@ by_color_select_draw (ByColorDialog *bcd,
gtk_widget_draw (bcd->preview, NULL);
/* Update the gimage label to reflect the displayed gimage name */
gtk_label_set (GTK_LABEL (bcd->gimage_name), prune_filename (gimage_filename (gimage)));
gtk_label_set_text (GTK_LABEL (bcd->gimage_name), prune_filename (gimage_filename (gimage)));
}
static gint
......
......@@ -805,7 +805,7 @@ by_color_select_draw (ByColorDialog *bcd,
gtk_widget_draw (bcd->preview, NULL);
/* Update the gimage label to reflect the displayed gimage name */
gtk_label_set (GTK_LABEL (bcd->gimage_name), prune_filename (gimage_filename (gimage)));
gtk_label_set_text (GTK_LABEL (bcd->gimage_name), prune_filename (gimage_filename (gimage)));
}
static gint
......
......@@ -132,7 +132,7 @@ brush_edit_brush_dirty_callback(GimpBrush *brush,
char str[255];
begw->scale = scale;
g_snprintf(str, 200, "%d:1", scale);
gtk_label_set(GTK_LABEL(begw->scale_label), str);
gtk_label_set_text(GTK_LABEL(begw->scale_label), str);
gtk_widget_draw(begw->scale_label, NULL);
}
gtk_widget_draw(begw->preview, NULL);
......
......@@ -865,8 +865,8 @@ compose_type_toggle_update (GtkWidget *widget,
*toggle_val = TRUE;
compose_idx = toggle_val - &(composeint.compose_flag[0]);
for (j = 0; j < MAX_COMPOSE_IMAGES; j++)
gtk_label_set (GTK_LABEL (composeint.channel_label[j]),
compose_dsc[compose_idx].channel_name[j]);
gtk_label_set_text (GTK_LABEL (composeint.channel_label[j]),
compose_dsc[compose_idx].channel_name[j]);
}
else
*toggle_val = FALSE;
......
......@@ -270,7 +270,7 @@ ErrorMessage(guchar *message)
gtk_widget_show(table);
label=gtk_label_new("");
gtk_label_set(GTK_LABEL(label),message);
gtk_label_set_text(GTK_LABEL(label),message);
gtk_widget_show(label);
gtk_table_attach(GTK_TABLE(table),label,0,1,0,1,
GTK_FILL|GTK_EXPAND,GTK_FILL|GTK_EXPAND,15,15);
......
......@@ -865,8 +865,8 @@ compose_type_toggle_update (GtkWidget *widget,
*toggle_val = TRUE;
compose_idx = toggle_val - &(composeint.compose_flag[0]);
for (j = 0; j < MAX_COMPOSE_IMAGES; j++)
gtk_label_set (GTK_LABEL (composeint.channel_label[j]),
compose_dsc[compose_idx].channel_name[j]);
gtk_label_set_text (GTK_LABEL (composeint.channel_label[j]),
compose_dsc[compose_idx].channel_name[j]);
}
else
*toggle_val = FALSE;
......
......@@ -270,7 +270,7 @@ ErrorMessage(guchar *message)
gtk_widget_show(table);
label=gtk_label_new("");
gtk_label_set(GTK_LABEL(label),message);
gtk_label_set_text(GTK_LABEL(label),message);
gtk_widget_show(label);
gtk_table_attach(GTK_TABLE(table),label,0,1,0,1,
GTK_FILL|GTK_EXPAND,GTK_FILL|GTK_EXPAND,15,15);
......
......@@ -148,15 +148,15 @@ update_range_labels()
{
guchar buffer[3];
gtk_label_set(GTK_LABEL(Current.rangeLabels[1]),"0");
gtk_label_set_text (GTK_LABEL(Current.rangeLabels[1]),"0");
sprintf(buffer,"%d",Current.Cutoffs[SHADOWS]);
gtk_label_set(GTK_LABEL(Current.rangeLabels[3]),buffer);
gtk_label_set(GTK_LABEL(Current.rangeLabels[5]),buffer);
gtk_label_set_text (GTK_LABEL(Current.rangeLabels[3]),buffer);
gtk_label_set_text (GTK_LABEL(Current.rangeLabels[5]),buffer);
sprintf(buffer,"%d",Current.Cutoffs[MIDTONES]);
gtk_label_set(GTK_LABEL(Current.rangeLabels[7]),buffer);
gtk_label_set(GTK_LABEL(Current.rangeLabels[9]),buffer);
gtk_label_set_text (GTK_LABEL(Current.rangeLabels[7]),buffer);
gtk_label_set_text (GTK_LABEL(Current.rangeLabels[9]),buffer);
gtk_label_set(GTK_LABEL(Current.rangeLabels[11]),"255");
gtk_label_set_text (GTK_LABEL(Current.rangeLabels[11]),"255");
}
......@@ -1031,7 +1031,7 @@ gint fp_advanced_dialog()
{
label=Current.rangeLabels[i]=gtk_label_new("-");
if (!(i%4)) {
gtk_label_set(GTK_LABEL(label),rangeNames[i/4]);
gtk_label_set_text(GTK_LABEL(label),rangeNames[i/4]);
gtk_misc_set_alignment(GTK_MISC(label),0.0,1.0);
}
gtk_widget_show(label);
......
......@@ -683,7 +683,7 @@ maze_help (GtkWidget *widget, gpointer foo)
static void
maze_msg (gchar *msg)
{
gtk_label_set(GTK_LABEL(msg_label), msg);
gtk_label_set_text(GTK_LABEL(msg_label), msg);
}
static void
......
......@@ -1183,7 +1183,7 @@ script_fu_interface (SFScript *script)
break;
case SF_TOGGLE:
gtk_label_set (GTK_LABEL (label), "Script Toggle");
gtk_label_set_text (GTK_LABEL (label), "Script Toggle");
script->args_widgets[i] = gtk_check_button_new_with_label (script->arg_labels[i]);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (script->args_widgets[i]),
script->arg_values[i].sfa_toggle);
......@@ -1449,7 +1449,7 @@ script_fu_file_preview (GtkWidget *preview,
if (data == NULL)
return;
gtk_label_set (GTK_LABEL (preview), g_basename((gchar *) data));
gtk_label_set_text (GTK_LABEL (preview), g_basename((gchar *) data));
}
......@@ -1481,12 +1481,12 @@ script_fu_font_preview (GtkWidget *preview,
label = g_new (guchar, strlen (family) + 1);
sprintf (label, "%s", family);
gtk_label_set (GTK_LABEL (preview), label);
gtk_label_set_text (GTK_LABEL (preview), label);
g_free (label);
}
else
{
gtk_label_set (GTK_LABEL (preview), "NOT SET");
gtk_label_set_text (GTK_LABEL (preview), "NOT SET");
}
g_free (fontname);
......
......@@ -1183,7 +1183,7 @@ script_fu_interface (SFScript *script)
break;
case SF_TOGGLE:
gtk_label_set (GTK_LABEL (label), "Script Toggle");
gtk_label_set_text (GTK_LABEL (label), "Script Toggle");
script->args_widgets[i] = gtk_check_button_new_with_label (script->arg_labels[i]);
gtk_toggle_button_set_state (GTK_TOGGLE_BUTTON (script->args_widgets[i]),
script->arg_values[i].sfa_toggle);
......@@ -1449,7 +1449,7 @@ script_fu_file_preview (GtkWidget *preview,
if (data == NULL)
return;
gtk_label_set (GTK_LABEL (preview), g_basename((gchar *) data));
gtk_label_set_text (GTK_LABEL (preview), g_basename((gchar *) data));
}
......@@ -1481,12 +1481,12 @@ script_fu_font_preview (GtkWidget *preview,
label = g_new (guchar, strlen (family) + 1);
sprintf (label, "%s", family);
gtk_label_set (GTK_LABEL (preview), label);
gtk_label_set_text (GTK_LABEL (preview), label);
g_free (label);
}
else
{
gtk_label_set (GTK_LABEL (preview), "NOT SET");
gtk_label_set_text (GTK_LABEL (preview), "NOT SET");
}
g_free (fontname);
......
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