1. 29 Oct, 2002 1 commit
  2. 25 Oct, 2002 1 commit
    • Matthias Clasen's avatar
      Fix doc comment. · 1a4c94b9
      Matthias Clasen authored
      	* gdk/x11/gdkcursor-x11.c: Fix doc comment.
      
      	* gdk/gdkdnd.c: Add missing includes.
      1a4c94b9
  3. 24 Oct, 2002 1 commit
  4. 23 Oct, 2002 1 commit
  5. 22 Oct, 2002 2 commits
  6. 18 Oct, 2002 2 commits
    • Owen Taylor's avatar
      Handle Return and KP_Enter. · a5803ca5
      Owen Taylor authored
      Fri Oct 18 16:47:02 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (translate_key_event): Handle
              Return and KP_Enter.
      a5803ca5
    • Owen Taylor's avatar
      Fix use of uninitialized variable. · 30faa38a
      Owen Taylor authored
      Thu Oct 17 17:17:05 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkcheckbutton.c (gtk_check_button_size_request):
              Fix use of uninitialized variable.
      
      Thu Oct 17 14:38:37 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gtk/gtkaccellabel.c (gtk_accel_label_expose_event):
              Align the baseline of the accelerator label with the
              first baseline of the main label of the menu item. (#76593)
      
      Wed Oct 16 18:25:24 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkevents-x11.c (translate_key_event):
              Use gdk_keymap_translate_keyboard_state() rather than
              XLookupString() to get the keysymbol, since XLookupString
              can confuse the input method handling. (#93575)
      
              * gdk/x11/gdkkeys-x11.c: Rewrite the handling of
              key translation for the non-XKB case to properly
              handle Shift_Lock, Caps_Lock, Num_Lock according
              to the Xlib spec. (#67066)
      30faa38a
  7. 17 Oct, 2002 1 commit
    • Havoc Pennington's avatar
      add g_return_if_fail for monitor number <= 0 · 727eb8af
      Havoc Pennington authored
      2002-10-16  Havoc Pennington  <hp@redhat.com>
      
      	* gdk/x11/gdkscreen-x11.c (gdk_screen_get_monitor_geometry): add
      	g_return_if_fail for monitor number <= 0
      
      	* gtk/gtkmenu.c (gtk_menu_position): handle case where pointer
      	is outside the screen.
      
      	* gtk/gtkwindow.c (get_monitor_center): factor out
      	the code to position a window in center
      	(gtk_window_compute_configure_request): use here
      	(gtk_window_constrain_position): use here, the
      	code here wasn't multihead-aware
      
      	* gdk/x11/gdkevents-x11.c (get_real_window): function to
      	return the window the event describes, rather than the window
      	that received the event.
      	(gdk_event_translate): use result of that function for
      	filling in GdkEvent::window, which only matters for
      	MapNotify/UnmapNotify and ConfigureNotify, in practice.
      
      	Unbreaks various things using SubstructureNotifyMask.
      727eb8af
  8. 16 Oct, 2002 2 commits
  9. 11 Oct, 2002 2 commits
  10. 08 Oct, 2002 1 commit
  11. 07 Oct, 2002 5 commits
    • Owen Taylor's avatar
      Add gdk_drag_find_window_for_screen(), so that we can interpret x_root / · f3f016d0
      Owen Taylor authored
      Mon Oct  7 15:48:44 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdnd.[ch] gdk/x11/gdkdnd-x11.c: Add
              gdk_drag_find_window_for_screen(), so that we can
              interpret x_root / y_root relative to the correct screen.
      
              * gdk/gdkdnd.c Makefile.am gdk/x11/gdkdnd-x11.c
              gdk/fb/gdkdnd-fb.c gdk/win32/gdkdnd-win32.c: New file.
              Move gdk_drag_find_window(), gdk_drag_get_protocol() here.
      
              * gtk/gtkdnd.c: Handle drags between screens; use
              a fallback icon for icons set as windows/pixmaps,
              move the drag icon between displays for icons set as
              pixbufs.
      
              * gdk/x11/gdkkeys-x11.c (update_keymaps): Fix infinite
              loop from last change.
      f3f016d0
    • Owen Taylor's avatar
      - Replace GdkPointerHooks with a multihead-safe GdkDisplayPointerHooks, · 253458ec
      Owen Taylor authored
      Mon Oct  7 15:10:00 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.[ch] gdk/gdkinternals.h
              gdk/gdkwindow.[ch] gdk/linux-fb/gdkwindow-fb.c
              gdk/win32/gdkwindow-win32.c gdk/x11/gdkwindow-x11.c:
      
              - Replace GdkPointerHooks with a multihead-safe
                GdkDisplayPointerHooks, leave GdkPointerHooks
                around for singlehead.
              - Add gdk_display_get_pointer() to get the pointer
                location with the screen it is on.
      
              * gdk/gdk.def gdk/gdkdisplay.[ch] gdk/gdkscreen.[ch]:
              Change gdk_screen_get_window_at_pointer() to
              gdk_display_get_window_at_pointer().
      
              * gtk/gtktreeview.c demos/gtk-demo/changedisplay.c
              tests/testgtk.c: Use gdk_display_get_window_at_pointer(),
              not gdk_screen_get_window_at_pointer().
      
              * gtk/gtkcolorsel.c: Fix grabbing color to be multihead
              safe.
      
              * gtk/gtkwidget.c: Allow gtk_widget_push_colormap (NULL).
              since it is useful for writing code that doesn't
              know the dcurrent state but needs a clean colormap.
      
              * gtk/gtkrc.c: When loading the settings for a particular
              screen, only reset toplevels on that screen.
      
              * gtk/gtkiconfactory.h: Fix #ifdef GTK_MULTIHEAD_SAFE
              that should have been #ifndef GTK_MULTIHEAD_SAFE.
      253458ec
    • Owen Taylor's avatar
      Fix some prototypes that had () instead of (void). · c1fff202
      Owen Taylor authored
      Mon Oct  7 14:51:21 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkx.h: Fix some prototypes that had
              () instead of (void).
      c1fff202
    • Owen Taylor's avatar
      If Mode_switch is used for a known modifier like Mod1, assume it won't be · b598a434
      Owen Taylor authored
      Mon Oct  7 11:45:17 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkkeys-x11.c (update_keymaps): If Mode_switch
              is used for a known modifier like Mod1, assume it won't
              be used to switch group. (#94841, problem reported by
              Szekeres Istvan)
      b598a434
    • Bill Haneman's avatar
  12. 05 Oct, 2002 1 commit
    • Soeren Sandmann's avatar
      docs/reference/gtk/tmpl/gtkfontseldlg.sgml, gdk/gdkwindow.c, · a92b7a99
      Soeren Sandmann authored
      Sat Oct  5 16:47:03 2002  Soeren Sandmann  <sandmann@daimi.au.dk>
      
      	* docs/reference/gtk/tmpl/gtkfontseldlg.sgml, gdk/gdkwindow.c,
      	gdk/x11/gdkwindow-x11.c, gtk/gtkfontsel.h, gtk/gtkimcontext.c,
      	gtk/gtktreeview.c, gtk/gtktreeviewcolumn.c
      
      	Documentation fixes:
      
      	#75170, Dan Winship;
      	#73220, Havoc Pennington;
      	#70742, Boris Shingarov;
      	#72007, Alexey A. Malyshev
      a92b7a99
  13. 04 Oct, 2002 4 commits
    • Owen Taylor's avatar
      Patch from Shivram U <shivaram.upadhyayula@wipro.com> · fd83bdba
      Owen Taylor authored
      Fri Oct  4 14:49:04 2002  Owen Taylor  <otaylor@redhat.com>
      
              Patch from Shivram U <shivaram.upadhyayula@wipro.com>
      
              * gdk/x11/gdkkeys-x11.c (update_keymaps): Increased the keycount to
              (max_keycode - min_keycode) + 1 from (max_keycode - min_keycode).
              (update_keymaps), (gdk_keymap_get_entries_for_keyval) looping through
              less than or equal to max_keycode. (#79184)
      fd83bdba
    • jacob berkman's avatar
      make legal C · a746c7c0
      jacob berkman authored
      2002-10-04  jacob berkman  <jacob@ximian.com>
      
      	* gdk/x11/gdkscreen-x11.c (init_xinerama_support): make legal C
      a746c7c0
    • Owen Taylor's avatar
      Get the name right. · ba768cd3
      Owen Taylor authored
      Fri Oct  4 12:00:10 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkscreen.c (gdk_screen_class_init): Get the
              name right.
      
              * gdk/x11/gdkscreen-x11.c (gdk_screen_x11_class_init):
              Fix function that should have been static.
      ba768cd3
    • Owen Taylor's avatar
      Add a check for the Xrandr extension. · 8555f427
      Owen Taylor authored
      Fri Oct  4 11:43:47 2002  Owen Taylor  <otaylor@redhat.com>
      
              * configure.in: Add a check for the Xrandr extension.
      
              * gdk/gdkscreen.[ch]: Add a size-changed signal.
      
              * gdk/x11/gdkscreen-x11.[ch]: Patch from Keith packard
              to hook up ConfigureNotify events on the root window
              to the ::size-changed signal. (#94560)
      
              * gtk/gtkimcontextsimple.c: Warning fixes
      8555f427
  14. 03 Oct, 2002 4 commits
    • Owen Taylor's avatar
      Fix error in computing length and a memory leak. (Fixes #94072, reported · 92fa2231
      Owen Taylor authored
      Thu Oct  3 19:00:55 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
              Fix error in computing length and a memory leak.
              (Fixes #94072, reported by Hema Seetharamaiah)
      
              * gtk/gtkmenu.c (gtk_menu_motion_notify): Fix &event
              used instead of event.
      92fa2231
    • Kristian Rietveld's avatar
      get XDisplay from window instead of display, as display has not been · 040d54a5
      Kristian Rietveld authored
      Thu Oct  3 23:53:43 2002  Kristian Rietveld  <kris@gtk.org>
      
              * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_destroy): get
              XDisplay from window instead of display, as display has not been
              defined here (fixes the build).
      040d54a5
    • Owen Taylor's avatar
      Restore the pre-Xft2 code to render text directly via RENDER, · 27290036
      Owen Taylor authored
      Thu Oct  3 17:09:23 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/x11/{gdkdrawable-x11.[ch],gdkpixmap-x11.c,
              gdkwindow-x11.c}: Restore the pre-Xft2 code to
              render text directly via RENDER, conditionalized
              with !HAVE_XFT2 so that we'll build again on Xft1
              systems. (#90181)
      27290036
    • Owen Taylor's avatar
      Add a 'type' parameter, make public. · ef33adff
      Owen Taylor authored
      Thu Oct  3 14:13:33 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.c (gdk_event_new): Add a 'type'
              parameter, make public.
      
              * gdk/gdkevents.c (gdk_event_copy): Copy the screen.
      
              * gdk/gdkevents.c gdk/linux-fb/gdkmain-fb.c
              gdk/x11/gdkevents-x11.c gdk/win32/gdkevents-win32.c:
              _gdk_event_new() => gdk_event_new().
      
              * gdk/win32/gdkevents-win32.c (real_window_procedure):
              Fix event_private->screen breakage that results from evil
              encapsulation breakage here.
      
              * gtk/gtkclist.c gtk/gtkcombo.c gtk/gtkcontainer.c
              gtk/gtkdialog.c gtk/gtkdnd.c gtk/gtkdrawingarea.c
              gtk/gtkimcontextsimple.c gtk/gtklist.c gtk/gtkmenu.c
              gtk/gtknotebook.c gtk/gtkplug.c gtk/gtkselection.c
              gtk/gtktext.c gtk/gtktreeitem.c gtk/gtktreeview.c
              gtk/gtkviewport.c gtk/gtkwindow-decorate.c gtk/gtkwindow.c
              tests/testgtk.c: Remove most usage of stack-allocated
              GdkEvent structures.
      
              * gtk/gtktreeview.c: Use a cut-and-paste of the full
              send_focus_event() from gtkwindow.c that does the necessary
              notification of the ::has-focus property and setting of
              the HAS_FOCUS flag.x
      
              * gtk/gtkdnd.c: Clean up some mess/duplicated code; removing
              an extraneous use of a GdkEvent.
      ef33adff
  15. 02 Oct, 2002 2 commits
    • Owen Taylor's avatar
      Export _gdk_draw_pixbuf as gdk_draw_pixbuf(), rename the _draw_pixbuf · 6cb79658
      Owen Taylor authored
      Wed Oct  2 17:46:53 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdrawable.h gdk/gdkinternals.h gdk/gdkdraw.c
              gdk/gdkwindow.c gdk/gdkdrawable.c: Export _gdk_draw_pixbuf
              as gdk_draw_pixbuf(), rename the _draw_pixbuf virtual
              function to draw_pixbuf. (#60582)
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable[_alpha]):
              Note that these functions are obsolete in the docs.
      
              * gdk/gdkpixbuf-render.c (gdk_pixbuf_render_to_drawable):
              Remove all the sanity checks now we make it clear
              that it is obsolete name for gdk_draw_pixbuf().
      
              * gdk/gdkpixmap.c gtk/gtkcellrendererpixbuf.c gtk/gtkimage.c
                gtk/gtkpixmap.c demos/testpixbuf-scale.c demos/testpixbuf.c
                tests/testrgb.c: Use gdk_draw_pixbuf() everywhere.
      
              * gtk/gtklabel.c (gtk_label_set_mnemonic_widget): Fix
              some warnings.
      
              * gdk/gdkinternals.h (struct _GdkEventPrivate): Fix missed
              bit from last gdk_event_get_screen() change.
      
              * gdk/gdkevents.c: Couple of small fixes.i
      6cb79658
    • Owen Taylor's avatar
      Add gdk_screen_set_screen()/_get_screen() which (by evil hacks) work for · ed521b3c
      Owen Taylor authored
      Wed Oct  2 17:36:42 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkevents.[ch] gdk/x11/gdkevents-x11.[ch]: Add
              gdk_screen_set_screen()/_get_screen() which (by evil
              hacks) work for for heap allocated events and
              fall back gracefully for stack allocated events.
      ed521b3c
  16. 30 Sep, 2002 1 commit
    • Owen Taylor's avatar
      Set the client ID on all displays. (#85713) · 2d385b9b
      Owen Taylor authored
      Mon Sep 30 15:31:57 2002  Owen Taylor  <otaylor@redhat.com>
      
              * gdk/gdkdisplay.c gdk/x11/gdkdisplay-x11.c
              gdk/gdkinternals.h: Set the client ID on all
              displays. (#85713)
      
              * gdk/gdkdisplay.h gkd/gdkinternals.h
               gdk/{linux-fb,win32,x11}/gdkmain-{fb,win32,x11}.c
              Privatize gdk_display_set_sm_client_id().
      2d385b9b
  17. 27 Sep, 2002 1 commit
  18. 25 Sep, 2002 3 commits
    • Havoc Pennington's avatar
      fix GtkWindowMnemonic to have a separate typedef · 1689117c
      Havoc Pennington authored
      2002-09-24  Havoc Pennington  <hp@redhat.com>
      
      	* gtk/gtkwindow.c: fix GtkWindowMnemonic to have a separate
      	typedef
      
      	* gdk/x11/gdkevents-x11.c (gdk_check_wm_state_changed): monitor
      	FULLSCREEN state
      
      	* tests/testgtk.c (get_state_controls): add
      	fullscreen/unfullscreen test
      
      	* gdk/gdkdisplay.c (gdk_display_finalize): fix unused variable
      
      	* gdk/x11/gdkscreen-x11.c (init_xinerama_support): fix unused
      	variable
      
      	* gdk/x11/gdkevents-x11.c (gdk_xsettings_watch_cb): mop up unused
      	variable
      
      	* gdk/x11/gdkscreen-x11.c
      	(_gdk_x11_screen_window_manager_changed): emit
      	window_manager_changed signal
      
      	* gdk/x11/gdkscreen-x11.h (struct _GdkScreenX11Class): add
      	window_manager_changed signal
      
      	* gdk/x11/gdkevents-x11.c
      	(gdk_x11_screen_get_window_manager_name): new function
      
      	* gtk/gtkwindow.c (gtk_window_class_init): add type_hint,
      	skip_taskbar_hint, skip_pager_hint properties
      	(gtk_window_set_skip_taskbar_hint):
      	(gtk_window_get_skip_taskbar_hint):
      	(gtk_window_set_skip_pager_hint):
      	(gtk_window_get_skip_pager_hint):
      	(gtk_window_fullscreen):
      	(gtk_window_unfullscreen): new functions
      
      	* gdk/gdkevents.h (GdkWindowState): add FULLSCREEN state
      
      	* gdk/gdkwindow.h (GdkWindowTypeHint): add missing type hint
      	values
      
      	* gdk/x11/gdkwindow-x11.c (gdk_window_set_skip_taskbar_hint):
      	(gdk_window_set_skip_pager_hint):
      	(gdk_window_fullscreen):
      	(gdk_window_unfullscreen): new functions
      	(set_initial_hints): set fullscreen here if appropriate
      1689117c
    • Owen Taylor's avatar
      Add gdk_screen_make_display_name(), which returns a display name that can · d41f210d
      Owen Taylor authored
      Wed Sep 25 10:51:24 2002  Owen Taylor  <otaylor@redhat.com>
              * gdk/gdkscreen.h gdk/{x11,win32,linux-fb}/gdkscreen-*.c:
              Add gdk_screen_make_display_name(), which returns a
              display name that can be used to open a display with the
              screen as the default (Based on patch from Mark McLoughlin,
              #86013)
      d41f210d
    • Manish Singh's avatar
      add -DG_DISABLE_DEPRECATED and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile · 234e191c
      Manish Singh authored
      Wed Sep 25 00:16:53 2002  Manish Singh  <yosh@gimp.org>
      
              * gdk/Makefile.am gdk/x11/Makefile.am: add -DG_DISABLE_DEPRECATED
              and -DGDK_PIXBUF_DISABLE_DEPRECATED to compile flags
      
              * gdk/gdkcolor.c gdk/gdkdisplay.c gdk/gdkdraw.c gdk/gdkevents.c
              gdk/gdkgc.c gdk/gdkimage.c gdk/gdkpango.c gdk/gdkpixbuf-render.c
              gdk/gdkpixmap.c gdk/gdkrgb.c gdk/gdkwindow.c gdk/linux-fb/gdkdnd-fb.c
              gdk/linux-fb/gdkfont-fb.c gdk/win32/gdkdnd-win32.c
              gdk/win32/gdkfont-win32.c gdk/x11/gdkdisplay-x11.c gdk/x11/gdkdnd-x11.c
              gdk/x11/gdkdrawable-x11.c gdk/x11/gdkevents-x11.c gdk/x11/gdkfont-x11.c
              gdk/x11/gdkgc-x11.c gdk/x11/gdkgeometry-x11.c gdk/x11/gdkim-x11.c
              gdk/x11/gdkinput-x11.c gdk/x11/gdkkeys-x11.c gdk/x11/gdkscreen-x11.c
              gdk/x11/gdkwindow-x11.c: Deprecation cleanup, mostly changing
              gdk_foo_{ref,unref} to g_object equivalents.
      234e191c
  19. 24 Sep, 2002 5 commits
    • Owen Taylor's avatar
      Look up the visual as well as the colormap, since calling · 6a7d4ee3
      Owen Taylor authored
      Tue Sep 24 19:45:55 2002  Owen Taylor  <otaylor@redhat.com>
              * gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap):
              Look up the visual as well as the colormap, since calling
              gdk_drawable_get_visual() causes infinite recursion.
      
              * gdk/x11/gdkwindow-x11.c (_gdk_windowing_window_init):
              Set the colormap for the root window.
      6a7d4ee3
    • Hidetoshi Tajima's avatar
      disable/enable preedit/status in GtkIMContextXIM (#59076) · 8cc9e8cf
      Hidetoshi Tajima authored
      	* gnome-settings-xsettings.c: added two new xsettings
      	for GTK+ input method preedit and status styles.
      
      	With the other patch for gtk+, the preedit and status styles of
      	GTK+ input method are configurable with associated gconf schemas
      	keys:
      	"/desktop/gnome/interface/gtk-im-preedit-style"
      	"/desktop/gnome/interface/gtk-im-status-style"
      
      	Both are set to "callback" by default, and platform's
      	packging can have different default by changing
      	libgnome's desktop_gnome_interface.schemas.
      8cc9e8cf
    • Matthias Clasen's avatar
      Replace leftover gdkx_visual_get_for_screen () by · 7a1a8a5f
      Matthias Clasen authored
      	* gdk/x11/gdkvisual-x11.c (gdkx_visual_get): Replace leftover
      	gdkx_visual_get_for_screen () by gdk_x11_screen_lookup_visual().
      7a1a8a5f
    • Matthias Clasen's avatar
      Replace leftover gdk_colormap_lookup () by gdk_x11_colormap_foreign_new () · cdc7d973
      Matthias Clasen authored
      	* gdk/x11/gdkwindow-x11.c (gdk_window_impl_x11_get_colormap):
      	Replace leftover gdk_colormap_lookup () by
      	gdk_x11_colormap_foreign_new () to make the linker happy.
      cdc7d973
    • Owen Taylor's avatar
      Add a GtkAccelGroupFindFunc to clean up the prototype. (#76670, Vitaly · ad07608c
      Owen Taylor authored
      Tue Sep 24 17:49:52 2002  Owen Taylor  <otaylor@redhat.com>
              * gtk/gtkaccelgroup.[ch] (gtk_accel_group_find):
              Add a GtkAccelGroupFindFunc to clean up the
              prototype. (#76670, Vitaly Tishkov)
      
              * gdk/x11/gdkvisual-x11.c gdk/x11/gdkx.h: Rename
              gdkx_visual_get_for_screen() to
              gdk_x11_screen_lookup_visual(). (#85702)
      ad07608c