summaryrefslogtreecommitdiff
path: root/src/frames.c
diff options
context:
space:
mode:
authorHavoc Pennington <hp@redhat.com>2002-03-06 22:27:24 +0000
committerHavoc Pennington <hp@src.gnome.org>2002-03-06 22:27:24 +0000
commit262e6fab273e1c9716854bd3034899b05a969b1a (patch)
tree9be535fa2ef7dd3c2fa8c93db1a4158454869ac1 /src/frames.c
parentd443d92446e40ca5ecac74f8373e56f0f616f79b (diff)
downloadmetacity-262e6fab273e1c9716854bd3034899b05a969b1a.tar.gz
metacity-262e6fab273e1c9716854bd3034899b05a969b1a.tar.bz2
use hash_table_replace instead of g_hash_table_insert
2002-03-06 Havoc Pennington <hp@redhat.com> * src/frames.c (meta_frames_manage_window): use hash_table_replace instead of g_hash_table_insert * src/main.c (main): only enable verbose/debug if you set METACITY_VERBOSE/METACITY_DEBUG * src/util.c (ensure_logfile): only use a log file if METACITY_USE_LOGFILE is set * src/display.c (meta_display_for_x_display): add warning if MetaDisplay isn't found * src/window.c (meta_window_free): add an assertion that we successfully cleared the grab window
Diffstat (limited to 'src/frames.c')
-rw-r--r--src/frames.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/frames.c b/src/frames.c
index 148b12c..67f63de 100644
--- a/src/frames.c
+++ b/src/frames.c
@@ -340,9 +340,9 @@ meta_frames_ensure_layout (MetaFrames *frames,
meta_pango_font_desc_get_text_height (font_desc,
gtk_widget_get_pango_context (widget));
- g_hash_table_insert (frames->text_heights,
- &size,
- GINT_TO_POINTER (frame->text_height));
+ g_hash_table_replace (frames->text_heights,
+ &size,
+ GINT_TO_POINTER (frame->text_height));
}
if (pango_font_description_get_size (font_desc) !=
@@ -434,7 +434,7 @@ meta_frames_manage_window (MetaFrames *frames,
meta_core_grab_buttons (gdk_display, frame->xwindow);
- g_hash_table_insert (frames->frames, &frame->xwindow, frame);
+ g_hash_table_replace (frames->frames, &frame->xwindow, frame);
}
void