Commit Graph

6052 Commits

Author SHA1 Message Date
Owen Taylor
2ae4c6ec3a Access window->screen through a function so we can provide an informative
Fri Nov  8 17:49:54 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwindow.c (gtk_window_check_screen): Access
        window->screen through a function so we can provide
        an informative warning window window->screen is NULL.
        (#85703)
2002-11-08 23:03:36 +00:00
Matthias Clasen
8f5c388b97 RTL flipping for check menu items.
* gtk/gtkcheckmenuitem.c
	(gtk_real_check_menu_item_draw_indicator): RTL flipping for check
	menu items.
2002-11-08 22:38:13 +00:00
Matthias Clasen
2d1ce5a4fb Put into #ifdef DO_BLINK to avoid an unused static function. (#97965)
* tests/testtext.c (blink_timeout): Put into #ifdef DO_BLINK to
	avoid an unused static function.  (#97965)

	* gtk/gtktextiter.c (backward_line_leaving_caches_unmodified):
	* gtk/gtkstyle.c (radio_aa_bits):
	(draw_spin_entry_shadow): #if-0-out unused static functions and
	variables.  (#97965)

	* gtk/gtktextview.c (text_window_get_allocation):
	* gtk/gtkcolorsel.c (gtk_color_selection_get_palette_size):
	(gtk_color_selection_get_palette_color):
	(gtk_color_selection_unset_palette_color): Remove unused static
	functions.  (#97965)

	* gtk/gtkcolorsel.c
	(gtk_color_selection_set_change_palette_with_screen_hook): Fix doc
	comment.
2002-11-08 22:34:38 +00:00
Owen Taylor
b179b5eba4 Use g_get_application_name() instead of g_get_prgname() as the default
Fri Nov  8 17:08:54 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkwindow-x11.c (gdk_window_new): Use
        g_get_application_name() instead of g_get_prgname()
        as the default window title when set.

        * gdk/x11/gdkwindow-x11.c gdk/x11/gdkdisplay-x11.[ch]:x
        Set g_get_application_name() as the title for the
        leader window the first time we create a window
        pointing to it.

        * tests/testgtk.c (main): Call g_set_application_name();

        * configure.in (GDK_PIXBUF_VERSION): Require GLib-2.1.3
2002-11-08 22:29:33 +00:00
Matthias Clasen
6b7b0c2bc3 Improve drawing of RTL submenu indicators.
* gtk/gtkstyle.c (gtk_default_draw_arrow): Improve drawing of RTL
	submenu indicators.
2002-11-08 21:55:43 +00:00
Matthias Clasen
13341b031b Fix drawing of RTL optionmenus by flipping the indicator_spacing.
* gtk/gtkoptionmenu.c (gtk_option_menu_paint): Fix drawing of RTL
	optionmenus by flipping the indicator_spacing.
2002-11-08 21:53:31 +00:00
Soeren Sandmann
6d0cb3232e add testmenus.c, a program to test menus when items are dynamically added
Fri Nov  8 21:15:25 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* tests/Makefile.am: add testmenus.c, a program to test menus when
	items are dynamically added and removed.
2002-11-08 20:16:43 +00:00
Soeren Sandmann
b1165617b7 docs/reference/gdk/tmpl/dnd.sgml docs/reference/gdk/tmpl/drawing.sgml
Fri Nov  8 20:14:52 2002  Soeren Sandmann  <sandmann@daimi.au.dk>

	* docs/reference/gdk/tmpl/dnd.sgml
	docs/reference/gdk/tmpl/drawing.sgml
	docs/reference/gdk/tmpl/gdk-unused.sgml
	docs/reference/gdk/tmpl/gdkdisplay.sgml
	docs/reference/gdk/tmpl/general.sgml
	docs/reference/gdk/tmpl/input_devices.sgml
	docs/reference/gdk/tmpl/selections.sgml
	docs/reference/gtk/tmpl/gtkcellrenderer.sgml
	docs/reference/gtk/tmpl/gtkcurve.sgml
	docs/reference/gtk/tmpl/gtkdnd.sgml
	docs/reference/gtk/tmpl/gtkitemfactory.sgml
	docs/reference/gtk/tmpl/gtkmenu.sgml
	docs/reference/gtk/tmpl/gtkoldeditable.sgml
	docs/reference/gtk/tmpl/gtkoptionmenu.sgml
	docs/reference/gtk/tmpl/gtkpreview.sgml
	docs/reference/gtk/tmpl/gtkselection.sgml
	docs/reference/gtk/tmpl/gtksocket.sgml
	docs/reference/gtk/tmpl/gtkstyle.sgml
	docs/reference/gtk/tmpl/gtktextbuffer.sgml
	docs/reference/gtk/tmpl/gtktreemodel.sgml
	docs/reference/gtk/tmpl/gtkwidget.sgml gdk/gdk.h gdk/gdkdisplay.c
	gdk/gdkdisplay.h gdk/gdkdnd.h gdk/gdkdraw.c gdk/gdkdrawable.h
	gdk/gdkinput.h gdk/gdkselection.h gdk/x11/gdkdisplay-x11.c
	gdk/x11/gdkdnd-x11.c gdk/x11/gdkselection-x11.c gtk/gtkcurve.h
	gtk/gtkdnd.h gtk/gtkitemfactory.c gtk/gtkitemfactory.h
	gtk/gtkmenu.h gtk/gtkoldeditable.c gtk/gtkoldeditable.h
	gtk/gtkoptionmenu.h gtk/gtkplug.c gtk/gtkplug.h gtk/gtkpreview.h
	gtk/gtkrange.h gtk/gtkselection.c gtk/gtkselection.h
	gtk/gtksocket.c gtk/gtksocket.h gtk/gtkstyle.c gtk/gtkstyle.h
	gtk/gtktextlayout.c gtk/gtktextlayout.h gtk/gtktreemodel.c
	gtk/gtktreemodel.h gtk/gtkwidget.h

	Trivial s/foo/foo_/ fixes to make gtk.h includable with -Wshadow
	without warnings. (#91680)
2002-11-08 19:41:50 +00:00
Eric Warmenhoven
0202f67266 fix compilation
Thu Nov  7 16:13:41 2002  Eric Warmenhoven <eric@warmenhoven.org>

	* gdk/linux-fb/gdkscreen-fb.c: fix compilation

	* gdk/linux-fb/gdkmain-fb.c: prevent segfaults on shutdown
2002-11-08 00:19:24 +00:00
Owen Taylor
ba64031dd7 Note that get_pango_context() is not "until death does us part", but
Thu Nov  7 18:50:38 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.c (gtk_widget_get_pango_context): Note
        that get_pango_context() is not "until death does us
        part", but "until the screen changes".

        * gtk/gtkwidget.c (gtk_widget_create_pango_context): Add
        a MULTIHEAD warning.

        * gtk/gtkwidget.c (do_screen_change): Clear pango context
        for widget if set.
2002-11-08 00:00:58 +00:00
Owen Taylor
933af061e1 Escape invalid filename before printing it out, since it isn't a valid
Thu Nov  7 18:09:42 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c (open_new_dir): Escape invalid
        filename before printing it out, since it isn't
        a valid UTF-8 string. (#94676)
2002-11-07 23:20:32 +00:00
Owen Taylor
d2caca5e20 Don't try to use render if we can't get a picture for the drawable. (Fixes
Thu Nov  7 17:18:06 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkdrawable-x11.c (gdk_x11_draw_pixbuf):
        Don't try to use render if we can't get a picture for
        the drawable. (Fixes #97220, reported by
        Jamie Zawinski)

        * gtk/gtkimage.c: Force requisition calculation
        when we get a expose prior to size_request().
        (#91711, reported by Sven Neumann, debugging
        help from Matthias Clasen, Soeren Sandmann)
2002-11-07 22:27:22 +00:00
Owen Taylor
b56f96c98d Fix misplaced display_grab()/display_ungrab(); they shouldn't have been
Thu Nov  7 16:45:54 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/x11/gdkx.h: Fix misplaced display_grab()/display_ungrab();
        they shouldn't have been deprecated.
2002-11-07 21:49:13 +00:00
Matthias Clasen
1751a74916 Use g_return_val_if_fail in this non-void function. (gdk_init_check):
* gdk/gdk.c (gdk_display_open_default_libgtk_only): Use
	g_return_val_if_fail in this non-void function.
	(gdk_init_check): Remove unused variable.
2002-11-07 21:05:52 +00:00
Owen Taylor
2406bea2b4 If called when fontsel->face is NULL, just return "Sans 10". (#82745,
Thu Nov  7 15:42:12 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfontsel.c (gtk_font_selection_get_font_description):
        If called when fontsel->face is NULL, just return
        "Sans 10". (#82745, Vitaly Tishkov)
2002-11-07 20:46:03 +00:00
Owen Taylor
6e43dea3e1 Use '_' not '-' in signal name to be consistent with what we do elsewhere
Thu Nov  7 15:29:43 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkimcontextsimple.c (check_hex): Use '_'
        not '-' in signal name to be consistent with
        what we do elsewhere (#97151, TOKUNAGA Hiroyuki)
2002-11-07 20:32:27 +00:00
Matthias Clasen
8791df04db Generate GdkDisplayManager signal and properties docs. 2002-11-07 20:24:09 +00:00
Matthias Clasen
05f6506bdc Generate GdkDisplayManager documentation. 2002-11-07 20:20:29 +00:00
Owen Taylor
724b39c855 Use g_date_strftime(), fixing #74745. (Alper Ersoy)
Thu Nov  7 14:51:31 2002  Owen Taylor  <otaylor@redhat.com>

        * tests/testcalendar.c (calendar_date_to_string):
        Use g_date_strftime(), fixing #74745. (Alper Ersoy)
2002-11-07 20:11:47 +00:00
Matthias Clasen
c6cd17ba2e Don't suppress GdkPixbufLoader signal documentation. 2002-11-07 20:01:53 +00:00
Anders Carlsson
9232e400a1 Check for NULL children, #97913.
2002-11-07  Anders Carlsson  <andersca@gnu.org>

	* gtk/gtkhpaned.c: (gtk_hpaned_size_allocate):
	* gtk/gtkvpaned.c: (gtk_vpaned_size_allocate):
	Check for NULL children, #97913.
2002-11-07 19:53:49 +00:00
Owen Taylor
50884b70f4 Add a snap_edge_set property to deal with the fact that we have an unset
Thu Nov  7 14:24:45 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkhandlebox.c: Add a snap_edge_set property to
        deal with the fact that we have an unset state for
        the snap_edge property. (Reported by Matthias Clasen
        #97505)
2002-11-07 19:35:37 +00:00
Owen Taylor
100286ac57 Add ::screen-changed signal.
Thu Nov  7 12:53:08 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkwidget.[ch] gtk/gtkwindow.c gtk/gtkinvisible.c:
        Add ::screen-changed signal.

        * gtk/gtkfontsel.c gtk/gtktoolbar.c: Use ::screen-changed
        signal to simplify logic.
2002-11-07 17:59:04 +00:00
Anders Carlsson
74bab1cc42 Add resize grips test.
2002-11-07  Anders Carlsson  <andersca@gnu.org>

	* tests/testgtk.c (create_resize_grips): Add resize grips test.
2002-11-07 10:06:07 +00:00
Owen Taylor
3f92a70e8b Fix trailing semicolon on macro, clean up a bit.
Wed Nov  6 15:19:53 2002  Owen Taylor  <otaylor@redhat.com>

        * io-gif.c (CHECK_LZW_SP): Fix trailing semicolon on macro,
        clean up a bit.
2002-11-06 20:26:27 +00:00
Matthias Clasen
11c530fe16 Forgotten ChangeLog 2002-11-05 23:57:26 +00:00
Matthias Clasen
037a036f84 Reindent 2002-11-05 22:58:28 +00:00
Owen Taylor
8942a3a2d5 Fix leaked pixbuf reference (#96823, Morten Welinder)
Tue Nov  5 14:16:17 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk-pixbuf-loader.c (gdk_pixbuf_loader_close): Fix
        leaked pixbuf reference (#96823, Morten Welinder)
2002-11-05 19:18:56 +00:00
Kristian Rietveld
66cefd1cc0 Bah, and of course I broke something ...
Sun Nov  3 21:26:20 2002  Kristian Rietveld  <kris@gtk.org>

        Bah, and of course I broke something ...

        * gtk/gtktreeselection.c (gtk_tree_selection_selected_foreach): fix
        up the mess I caused with my commit of Oct 23 fixing #50263, things
        should be fine now.
2002-11-03 20:12:00 +00:00
Jonathan Blandford
e6143c65eb more docs.
Sun Nov  3 13:23:51 2002  Jonathan Blandford  <jrb@gnome.org>

	* gtk/tmpl/gtkcellrenderer.sgml: more docs.
2002-11-03 18:25:05 +00:00
Owen Taylor
42bd8a2a0b Remove check for winsock.h since it might show up on Linux+Wine. Instead
Sun Nov  3 13:03:29 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c configure.in: Remove check for
        winsock.h since it might show up on Linux+Wine.
        Instead just conditionalize of G_OS_WIN32.
        (#97396, Gaute Lindkvist)
2002-11-03 18:17:53 +00:00
Dmitry Mastrukov
0082a6e8c2 be.po: Updated Belarusian translation from Belarusian team <i18n@infonet.by>. 2002-11-03 04:41:05 +00:00
Kristian Rietveld
ec9e55b7cb took out the useless check for refs->list (#97353, reported by Morten
Sun Nov  3 01:39:20 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodel.c (release_row_references): took out the useless
        check for refs->list (#97353, reported by Morten Welinder).

        * gtk/gtkcellrendererpixbuf.c (gtk_cell_renderer_pixbuf_get_size):
        check if width isn't zero instead of calc_width ...
2002-11-03 00:26:35 +00:00
Kristian Rietveld
d52077d68d remove the second ref command on the child_model, we only have to ref it
Sat Nov  2 23:48:52 2002  Kristian Rietveld  <kris@gtk.org>

        * gtk/gtktreemodelsort.c (gtk_tree_model_sort_set_model): remove
        the second ref command on the child_model, we only have to ref it
        once here. (#96851, reported by Jorn Baayen).
2002-11-02 22:34:58 +00:00
Matthias Clasen
1fd7ddbd0b Automatic RTL flipping for handleboxes. 2002-11-02 19:49:02 +00:00
Owen Taylor
d96651b5c2 === Released 2.1.2 ===
Sat Nov  2 13:47:09 2002  Owen Taylor  <otaylor@redhat.com>

        * === Released 2.1.2 ===

        * NEWS: Update.
2002-11-02 18:55:18 +00:00
Owen Taylor
4887593344 Remove rules for generation of version.xml, which was causing make to
Sat Nov  2 12:46:16 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk-pixbuf/Makefile.am: Remove rules for generation
        of version.xml, which was causing make to always
        rebuild the HTML file, and didn't seem to be used.

        * gtk/tmpl/gtkliststore.sgml: SGML fixes.
2002-11-02 18:18:50 +00:00
Jonathan Blandford
aff0f173bf clean up the wording.
Sat Nov  2 08:41:47 2002  Jonathan Blandford  <jrb@gnome.org>

	* gtk/tmpl/gtktreestore.sgml: clean up the wording.

	* gtk/tmpl/gtkliststore.sgml: Add an example and clean up the
	wording.
2002-11-02 13:43:01 +00:00
Owen Taylor
accc3a3365 Add startup notification hooks - mostly based on patch by Havoc Pennington
Sat Nov  2 00:22:33 2002  Owen Taylor  <otaylor@redhat.com>

        Add startup notification hooks - mostly based on patch
        by Havoc Pennington in #96772.

        * gdk/gdk.h gdk/x11/gdkdisplay-x11.c
        gdk/{win32,linux-fb}/gdkmain-*.c: (gdk_notify_startup_complete):
        new function that indicates an application has finished starting
        up.

        * gdk/x11/gdkmain-x11.c gdk/x11/gdkdisplay-x11.c
        (_gdk_windowing_set_default_display): store value of
        DESKTOP_STARTUP_ID on the default screen, and clear it from the
        environment.

        * gdk/x11/gdkdisplay-x11.c:
        Set _NET_STARTUP_ID hint on display's group leader window.

        * gtk/gtkwindow.c (gtk_window_set_auto_startup_notification):
        function to toggle whether we automatically broadcast that we've
        started up, after mapping the first toplevel window.
        (gtk_window_map): call gdk_screen_notify_startup_complete() by
        default, unless enabled by above.

        * gtk/gtkmain.c gtk/gtkcombo.c gtk/gtktoolbar.c:
        Couple of warning fixes.
2002-11-02 05:37:04 +00:00
Owen Taylor
39a5a723f0 Add a mnemonic to the "selection" label. (More of #74267)
Fri Nov  1 21:03:59 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtkfilesel.c: Add a mnemonic to the "selection"
        label. (More of #74267)

        * configure.in: Version 2.1.2

        * NEWS: Updates.
2002-11-02 03:54:18 +00:00
Matthias Clasen
00943af834 Automatic RTL flipping for some more widgets. 2002-11-02 00:18:14 +00:00
Matthias Clasen
ca00536f34 More doc comments moved inline. 2002-11-01 00:45:32 +00:00
Matthias Clasen
1489222cab The label is "Folders" now, not "Directories". (#97224, Vitaly Tishkov)
* gtk/tmpl/gtkfilesel.sgml: The label is "Folders" now, not
	"Directories".  (#97224, Vitaly Tishkov)
	* gtk/tmpl/gtkrc.sgml: Fix a link. Add (minimal) docs for setting
	style properties from rc files. More needed !!
2002-11-01 00:02:05 +00:00
Owen Taylor
907ac77664 Fix from Nam SungHyun for crashes when tooltips->active_tips_data is NULL.
Thu Oct 31 17:41:12 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/gtktooltips.c (gtk_tooltips_update_screen): Fix
        from Nam SungHyun for crashes when tooltips->active_tips_data
        is NULL.
2002-10-31 22:43:00 +00:00
Owen Taylor
550bf181d2 Add a --screen option for setting the default screen. (Based on a patch
Thu Oct 31 12:40:39 2002  Owen Taylor  <otaylor@redhat.com>

        * gdk/gdk.[ch] gdk/gdkglobals.c gdk/gdkinternals.h
        gdk/{x11,win32,linux-fb}/gdkscreen-{x11,win32,linux-fb}.c:
        Add a --screen option for setting the default screen.
        (Based on a patch from Balamurali Viswanathan, #81145)

        * gdk/gdk.c gdkdisplay.h gtk/gtkmain.c: Add
        gdk_display_open_default_libgtk_only(), so gtk_init_check()
        and gdk_init_check() can share the same behavior w.r.t.
        --screen.

        * gdk/gdk.[ch]: Make gdk_get_display_arg_name() G_CONST_RETURN.

        * gdk/x11/gdkselection-x11.c (gdk_selection_property_get):
        Suppress a spurious warning.

        * tests/testgtkrc: Remove someleft-over commented out
        includes that could be confusing.
2002-10-31 21:12:23 +00:00
Owen Taylor
089a388263 Document --screen.
Wed Oct 30 16:50:42 2002  Owen Taylor  <otaylor@redhat.com>

        * gtk/running.sgml: Document --screen.
2002-10-31 21:10:47 +00:00
Padraig O'Briain
16b3f88618 Move g_free() call to before return.
* gtk/gtktoolbar.c (gtk_toolbar_insert_stock): Move g_free()
call to before return.
2002-10-31 17:04:00 +00:00
Matthias Clasen
0083c5e0dd Adjust for current gtk-engines.
* tests/testgtkrc: Adjust for current gtk-engines.
2002-10-29 22:27:28 +00:00
Matthias Clasen
d00b2b0a4a doc comment fixes. 2002-10-29 21:27:17 +00:00
Matthias Clasen
ec84d8d14d small doc fixes. 2002-10-29 19:55:44 +00:00