app/gradient.c app/gradient_select.c

Thu Nov  5 21:55:46 GMT 1998 Andy Thomas <alt@picnic.demon.co.uk>

	* app/gradient.c
	* app/gradient_select.c

	Changes due to gtk+ updates. Clist have been changed recently
	in gtk which required changes to source code. These changes
	have only been tested with the gtk version that introduced these
	changes. (so lets get all those updates going...)
This commit is contained in:
GMT 1998 Andy Thomas 1998-11-05 23:10:31 +00:00 committed by Andy Thomas
parent 088ff5d4e4
commit 66cd5c1678
7 changed files with 70 additions and 26 deletions

View File

@ -1,3 +1,13 @@
Thu Nov 5 21:55:46 GMT 1998 Andy Thomas <alt@picnic.demon.co.uk>
* app/gradient.c
* app/gradient_select.c
Changes due to gtk+ updates. Clist have been changed recently
in gtk which required changes to source code. These changes
have only been tested with the gtk version that introduced these
changes. (so lets get all those updates going...)
Wed Nov 4 11:24:55 EST 1998 Adrian Likins <adrian@gimp.org>
* MAINTAINERS: added a list of current maintainers

View File

@ -584,6 +584,7 @@ grad_create_gradient_editor_init(gint need_show)
GtkWidget *button;
GtkWidget *frame;
GtkWidget *separator;
GtkWidget *scrolled_win;
GdkColormap *colormap;
int i;
int select_pos;
@ -671,6 +672,8 @@ grad_create_gradient_editor_init(gint need_show)
/* clist preview of gradients */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
g_editor->clist = gtk_clist_new(2);
gtk_clist_set_border(GTK_CLIST(g_editor->clist), GTK_SHADOW_IN);
@ -681,10 +684,13 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_clist_set_policy(GTK_CLIST(g_editor->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_box_pack_start(GTK_BOX(hbox), g_editor->clist, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (scrolled_win), g_editor->clist);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_ALWAYS);
gtk_widget_show(scrolled_win);
gtk_widget_show(g_editor->clist);
colormap = gtk_widget_get_colormap(g_editor->clist);

View File

@ -584,6 +584,7 @@ grad_create_gradient_editor_init(gint need_show)
GtkWidget *button;
GtkWidget *frame;
GtkWidget *separator;
GtkWidget *scrolled_win;
GdkColormap *colormap;
int i;
int select_pos;
@ -671,6 +672,8 @@ grad_create_gradient_editor_init(gint need_show)
/* clist preview of gradients */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
g_editor->clist = gtk_clist_new(2);
gtk_clist_set_border(GTK_CLIST(g_editor->clist), GTK_SHADOW_IN);
@ -681,10 +684,13 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_clist_set_policy(GTK_CLIST(g_editor->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_box_pack_start(GTK_BOX(hbox), g_editor->clist, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (scrolled_win), g_editor->clist);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_ALWAYS);
gtk_widget_show(scrolled_win);
gtk_widget_show(g_editor->clist);
colormap = gtk_widget_get_colormap(g_editor->clist);

View File

@ -442,6 +442,7 @@ gsel_new_selection(gchar * title,
GSList *list;
GtkWidget *vbox;
GtkWidget *hbox;
GtkWidget *scrolled_win;
GdkColormap *colormap;
int select_pos;
@ -470,7 +471,8 @@ gsel_new_selection(gchar * title,
gsp);
/* clist preview of gradients */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gsp->clist = gtk_clist_new(2);
gtk_clist_set_border(GTK_CLIST(gsp->clist), GTK_SHADOW_IN);
@ -481,15 +483,18 @@ gsel_new_selection(gchar * title,
gtk_clist_set_column_title(GTK_CLIST(gsp->clist), 1, "Name");
gtk_clist_column_titles_show(GTK_CLIST(gsp->clist));
gtk_clist_set_policy(GTK_CLIST(gsp->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
hbox = gtk_hbox_new(FALSE, 8);
gtk_container_border_width(GTK_CONTAINER(hbox), 0);
gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
gtk_widget_show(hbox);
gtk_box_pack_start(GTK_BOX(hbox), gsp->clist, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (scrolled_win), gsp->clist);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_ALWAYS);
gtk_widget_show(scrolled_win);
gtk_widget_show(gsp->clist);
gtk_widget_set_usize (gsp->clist, 200, 250);

View File

@ -584,6 +584,7 @@ grad_create_gradient_editor_init(gint need_show)
GtkWidget *button;
GtkWidget *frame;
GtkWidget *separator;
GtkWidget *scrolled_win;
GdkColormap *colormap;
int i;
int select_pos;
@ -671,6 +672,8 @@ grad_create_gradient_editor_init(gint need_show)
/* clist preview of gradients */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
g_editor->clist = gtk_clist_new(2);
gtk_clist_set_border(GTK_CLIST(g_editor->clist), GTK_SHADOW_IN);
@ -681,10 +684,13 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_clist_set_policy(GTK_CLIST(g_editor->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_box_pack_start(GTK_BOX(hbox), g_editor->clist, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (scrolled_win), g_editor->clist);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_ALWAYS);
gtk_widget_show(scrolled_win);
gtk_widget_show(g_editor->clist);
colormap = gtk_widget_get_colormap(g_editor->clist);

View File

@ -442,6 +442,7 @@ gsel_new_selection(gchar * title,
GSList *list;
GtkWidget *vbox;
GtkWidget *hbox;
GtkWidget *scrolled_win;
GdkColormap *colormap;
int select_pos;
@ -470,7 +471,8 @@ gsel_new_selection(gchar * title,
gsp);
/* clist preview of gradients */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
gsp->clist = gtk_clist_new(2);
gtk_clist_set_border(GTK_CLIST(gsp->clist), GTK_SHADOW_IN);
@ -481,15 +483,18 @@ gsel_new_selection(gchar * title,
gtk_clist_set_column_title(GTK_CLIST(gsp->clist), 1, "Name");
gtk_clist_column_titles_show(GTK_CLIST(gsp->clist));
gtk_clist_set_policy(GTK_CLIST(gsp->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
hbox = gtk_hbox_new(FALSE, 8);
gtk_container_border_width(GTK_CONTAINER(hbox), 0);
gtk_box_pack_start(GTK_BOX(vbox), hbox, TRUE, TRUE, 0);
gtk_widget_show(hbox);
gtk_box_pack_start(GTK_BOX(hbox), gsp->clist, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (scrolled_win), gsp->clist);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_ALWAYS);
gtk_widget_show(scrolled_win);
gtk_widget_show(gsp->clist);
gtk_widget_set_usize (gsp->clist, 200, 250);

View File

@ -584,6 +584,7 @@ grad_create_gradient_editor_init(gint need_show)
GtkWidget *button;
GtkWidget *frame;
GtkWidget *separator;
GtkWidget *scrolled_win;
GdkColormap *colormap;
int i;
int select_pos;
@ -671,6 +672,8 @@ grad_create_gradient_editor_init(gint need_show)
/* clist preview of gradients */
scrolled_win = gtk_scrolled_window_new (NULL, NULL);
g_editor->clist = gtk_clist_new(2);
gtk_clist_set_border(GTK_CLIST(g_editor->clist), GTK_SHADOW_IN);
@ -681,10 +684,13 @@ grad_create_gradient_editor_init(gint need_show)
gtk_clist_set_column_title(GTK_CLIST(g_editor->clist), 1, "Name");
gtk_clist_column_titles_show(GTK_CLIST(g_editor->clist));
gtk_clist_set_policy(GTK_CLIST(g_editor->clist), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_box_pack_start(GTK_BOX(hbox), g_editor->clist, TRUE, TRUE, 0);
gtk_box_pack_start(GTK_BOX(hbox), scrolled_win, TRUE, TRUE, 0);
gtk_container_add (GTK_CONTAINER (scrolled_win), g_editor->clist);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_win),
GTK_POLICY_AUTOMATIC,
GTK_POLICY_ALWAYS);
gtk_widget_show(scrolled_win);
gtk_widget_show(g_editor->clist);
colormap = gtk_widget_get_colormap(g_editor->clist);