Commit 8e6e38eb authored by Jiri (George) Lebl's avatar Jiri (George) Lebl Committed by George Lebl

remove the raise function and just replace it with gtk_window_present,

Wed Dec 19 16:48:41 2001  George Lebl <jirka@5z.com>

	* xstuff.[ch], gnome-run.c, launcher.c, menu-properties.c,
	  panel-config.c: remove the raise function and just replace
	  it with gtk_window_present, remove some other cruft left around

	* menu.c: don't prepend home dir to distro menu paths, these
	  are uris now
parent 0edd3700
Wed Dec 19 16:48:41 2001 George Lebl <jirka@5z.com>
* xstuff.[ch], gnome-run.c, launcher.c, menu-properties.c,
panel-config.c: remove the raise function and just replace
it with gtk_window_present, remove some other cruft left around
* menu.c: don't prepend home dir to distro menu paths, these
are uris now
2001-12-19 Seth Nickell <snickell@stanford.edu>
* panel-global-config.schemas:
......
......@@ -409,7 +409,7 @@ browse(GtkWidget *w, GtkWidget *entry)
gtk_window_position (GTK_WINDOW (fsel), GTK_WIN_POS_MOUSE);
xstuff_window_raise_on_current_wspace (GTK_WIDGET (fsel));
gtk_window_present (GTK_WINDOW (fsel));
}
static gboolean
......@@ -1125,7 +1125,7 @@ show_run_dialog (void)
return;
if(run_dialog != NULL) {
xstuff_window_raise_on_current_wspace (run_dialog);
gtk_window_present (GTK_WINDOW (run_dialog));
return;
}
......
......@@ -591,7 +591,7 @@ void
launcher_properties (Launcher *launcher)
{
if (launcher->prop_dialog != NULL) {
xstuff_window_raise_on_current_wspace (launcher->prop_dialog);
gtk_window_present (GTK_WINDOW (launcher->prop_dialog));
return;
}
......
......@@ -620,7 +620,7 @@ menu_properties (Menu *menu)
g_return_if_fail (menu != NULL);
if (menu->prop_dialog != NULL) {
xstuff_window_raise_on_current_wspace (menu->prop_dialog);
gtk_window_present (GTK_WINDOW (menu->prop_dialog));
return;
}
......
......@@ -338,7 +338,7 @@ about_cb (GtkWidget *widget, gpointer data)
};
if (about) {
xstuff_window_raise_on_current_wspace (about);
gtk_window_present (GTK_WINDOW (about));
return;
}
......@@ -3212,7 +3212,7 @@ create_distribution_menu (GtkWidget *menu,
gboolean launcher_add)
{
const DistributionInfo *info = get_distribution_info ();
gchar *pixmap_file, *menu_path;
gchar *pixmap_file;
if (!info)
return NULL;
......@@ -3223,26 +3223,20 @@ create_distribution_menu (GtkWidget *menu,
else
pixmap_file = NULL;
if (info->menu_path [0] != '/')
menu_path = gnome_util_home_file (info->menu_path);
else
menu_path = g_strdup (info->menu_path);
if (!fake || menu) {
menu = create_menu_at (menu, menu_path,
menu = create_menu_at (menu, info->menu_path,
FALSE /* applets */,
launcher_add,
info->menu_name, pixmap_file,
fake_submenus, FALSE);
} else {
menu = create_fake_menu_at (menu_path,
menu = create_fake_menu_at (info->menu_path,
FALSE /* applets */,
launcher_add,
info->menu_name, pixmap_file);
}
g_free (pixmap_file);
g_free (menu_path);
return menu;
}
......
......@@ -1608,7 +1608,7 @@ panel_config (GtkWidget *panel)
if (ppc != NULL) {
g_assert (ppc->config_window != NULL);
xstuff_window_raise_on_current_wspace (ppc->config_window);
gtk_window_present (GTK_WINDOW (ppc->config_window));
return;
}
......
......@@ -616,9 +616,8 @@ xstuff_set_pos_size (GdkWindow *window, int x, int y, int w, int h)
/* Do not add USPosition / USSize here, fix the damn WM */
size_hints.flags = PPosition | PSize | PMaxSize | PMinSize;
size_hints.x = 0; /* window managers aren't supposed to and
size_hints.y = 0; * don't use these fields
*/
size_hints.x = 0; /* window managers aren't supposed to and */
size_hints.y = 0; /* don't use these fields */
size_hints.width = w;
size_hints.height = h;
size_hints.min_width = w;
......@@ -685,11 +684,3 @@ xstuff_delete_property (GdkWindow *window, const char *name)
GDK_WINDOW_XWINDOW (window),
ATOMGDK (window, name));
}
void
xstuff_window_raise_on_current_wspace (GtkWidget *window)
{
gtk_window_present (GTK_WINDOW (window));
}
......@@ -49,13 +49,10 @@ void xstuff_set_pos_size (GdkWindow *window,
int w, int h);
void xstuff_set_wmspec_dock_hints (GdkWindow *window,
gboolean autohide);
void xstuff_set_wmspec_state_hints (GdkWindow *window);
void xstuff_set_wmspec_strut (GdkWindow *window,
int left,
int right,
int top,
int bottom);
void xstuff_window_raise_on_current_wspace (GtkWidget *window);
#endif
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