Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
GIMP
Commits
25b4d7ee
Commit
25b4d7ee
authored
Aug 16, 1998
by
Chris Lahey
Browse files
Small fixes to the document index.
parent
764cc9c8
Changes
4
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
25b4d7ee
1998-08-16 Chris Lahey <clahey@umich.edu>
* app/docindexif.c: Fixed up the UI to make the document index
look a bit more like a dialog.
* app/docindex.h:
* app/docindex.c: Just fixed a few small nits. Might have made
the document index a bit more robust during gimp crashes.
Sat Aug 15 22:53:36 CDT 1998 Larry Ewing <lewing@gimp.org>
* app/gdisplay.c (gdisplay_update_cursor): Make sure we check the
...
...
app/docindex.c
View file @
25b4d7ee
...
...
@@ -23,12 +23,12 @@
idea_manager
*
ideas
=
NULL
;
static
GList
*
idea_list
=
NULL
;
/* of gchar *. */
static
gint
x
,
y
,
width
,
height
;
static
gint
x
=
0
,
y
=
0
,
width
=
0
,
height
=
0
;
static
char
*
image_drop_types
[]
=
{
"url:ALL"
};
static
void
create_idea_list
();
static
void
create_idea_list
(
void
);
static
void
load_idea_manager
(
idea_manager
*
);
static
void
...
...
@@ -94,7 +94,8 @@ idea_window_delete_event_callback( GtkWidget *widget, GdkEvent *event, gpointer
void
idea_hide_callback
(
GtkWidget
*
widget
,
gpointer
data
)
{
save_idea_manager
(
ideas
);
if
(
ideas
||
idea_list
||
width
||
height
)
save_idea_manager
(
ideas
);
/* False if exitting */
if
(
(
!
exit_from_go
()
)
&&
ideas
)
...
...
@@ -107,7 +108,7 @@ idea_hide_callback( GtkWidget *widget, gpointer data )
}
void
open_idea_window
()
open_idea_window
(
void
)
{
make_idea_window
(
-
1
,
-
1
);
}
...
...
@@ -139,8 +140,6 @@ make_idea_window( int x, int y )
menu
=
ideas
->
menubar
->
widget
;
/* Setup accelerator (hotkey) table */
accel
=
ideas
->
menubar
->
accel_group
;
/* Setup the window_menu widget for additions and removals */
ideas
->
window_menu
=
GTK_WIDGET
(
GTK_MENU_ITEM
(
g_list_nth
(
GTK_MENU_SHELL
(
menu
)
->
children
,
1
)
->
data
)
->
submenu
);
/* Add accelerators to window widget */
gtk_window_add_accel_group
(
GTK_WINDOW
(
ideas
->
window
),
accel
);
...
...
@@ -328,7 +327,7 @@ save_to_list( gpointer data, gpointer null_data )
}
static
void
create_idea_list
()
create_idea_list
(
void
)
{
gdk_window_get_geometry
(
ideas
->
window
->
window
,
&
x
,
&
y
,
&
width
,
&
height
,
NULL
);
gdk_window_get_origin
(
ideas
->
window
->
window
,
&
x
,
&
y
);
...
...
@@ -553,7 +552,7 @@ void idea_remove_callback( GtkWidget *widget, gpointer data )
}
void
close_idea_window
()
close_idea_window
(
void
)
{
idea_hide_callback
(
NULL
,
NULL
);
}
...
...
app/docindex.h
View file @
25b4d7ee
...
...
@@ -42,8 +42,8 @@ typedef struct idea_manager
}
idea_manager
;
void
make_idea_window
(
gint
x
,
gint
y
);
void
open_idea_window
();
void
close_idea_window
();
void
open_idea_window
(
void
);
void
close_idea_window
(
void
);
void
idea_add
(
gchar
*
label
);
void
idea_add_in_position
(
gchar
*
label
,
gint
position
);
void
raise_idea_callback
(
GtkWidget
*
widget
,
gpointer
data
);
...
...
app/docindexif.c
View file @
25b4d7ee
...
...
@@ -65,9 +65,7 @@ static GtkMenuEntry idea_menu [] =
{
"<Main>/File/New"
,
"<control>N"
,
file_new_cmd_callback
,
NULL
},
{
"<Main>/File/Open..."
,
"<control>O"
,
file_open_callback
,
NULL
},
{
"<Main>/File/<separator>"
,
NULL
,
NULL
,
NULL
},
{
"<Main>/File/Hide Index"
,
"<control>W"
,
idea_hide_callback
,
NULL
},
{
"<Main>/File/Quit"
,
"<control>Q"
,
file_quit_cmd_callback
,
NULL
},
{
"<Main>/Help/About..."
,
NULL
,
about_dialog_cmd_callback
,
NULL
}
{
"<Main>/File/Close Index"
,
"<control>W"
,
idea_hide_callback
,
NULL
},
};
GtkMenuFactory
*
create_idea_menu
()
...
...
@@ -99,7 +97,7 @@ GtkWidget *create_idea_toolbar()
gtk_toolbar_set_button_relief
(
GTK_TOOLBAR
(
toolbar
),
GTK_RELIEF_NONE
);
gtk_toolbar_append_item
(
GTK_TOOLBAR
(
toolbar
),
"Open
File
"
,
"Open a file"
,
"Toolbar/Open"
,
"Open"
,
"Open a file"
,
"Toolbar/Open"
,
NULL
,
(
GtkSignalFunc
)
file_open_callback
,
NULL
);
...
...
@@ -119,14 +117,9 @@ GtkWidget *create_idea_toolbar()
(
GtkSignalFunc
)
idea_remove_callback
,
NULL
);
gtk_toolbar_append_item
(
GTK_TOOLBAR
(
toolbar
),
"
Hid
e"
,
"
Hid
e the Document Index"
,
"Toolbar/Hide"
,
"
Clos
e"
,
"
Clos
e the Document Index"
,
"Toolbar/Hide"
,
NULL
,
(
GtkSignalFunc
)
idea_hide_callback
,
NULL
);
gtk_toolbar_append_item
(
GTK_TOOLBAR
(
toolbar
),
"Quit"
,
"Duh"
,
"Toolbar/Quit"
,
NULL
,
(
GtkSignalFunc
)
file_quit_cmd_callback
,
NULL
);
return
toolbar
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment