]> git.sur5r.net Git - glabels/commitdiff
2009-02-21 JimEvins <evins@snaught.com>
authorJim Evins <evins@snaught.com>
Sat, 21 Feb 2009 07:43:03 +0000 (07:43 +0000)
committerJim Evins <evins@snaught.com>
Sat, 21 Feb 2009 07:43:03 +0000 (07:43 +0000)
* README:
* configure.in:
* data/builder/object-editor.glade:
* data/builder/prefs-dialog.glade:
* data/builder/property-bar.glade:
* data/builder/template-designer.glade:
* gtk-doc.make:
* src/color-combo-color-menu-item.c:
* src/color-combo-color-menu-item.h:
* src/color-combo-menu.h:
* src/glabels-batch.c: (main):
* src/glabels.c: (main):
* src/merge-properties-dialog.h:
* src/new-label-dialog.h:
* src/object-editor-lsize-page.c:
(gl_object_editor_prepare_lsize_page), (lsize_prefs_changed_cb):
* src/object-editor.h:
* src/prefs-dialog.h:
* src/print-op.h:
* src/template-designer.h:
* src/ui-commands.c: (gl_ui_cmd_view_property_bar_tips_toggle),
(gl_ui_cmd_help_contents), (gl_ui_cmd_help_about):
* src/ui-property-bar.c:
* src/ui-property-bar.h:
* src/ui-sidebar.c: (gl_ui_sidebar_construct),
(selection_changed_cb):
* src/ui-sidebar.h:
* src/view.h:
* src/wdgt-media-select.h:
* src/wdgt-merge-menu.h:
* src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_class_init):
* src/wdgt-mini-preview.h:
* src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
* src/wdgt-print-copies.h:
* src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
* src/wdgt-print-merge.h:
* src/wdgt-rotate-label.h:
* src/window.h:
Removed final dependencies on libgnome and libgnomeui.
Removed all currently deprecated symbols as of GTK 2.14.

git-svn-id: https://glabels.svn.sourceforge.net/svnroot/glabels/trunk@825 f5e0f49d-192f-0410-a22d-a8d8700d0965

36 files changed:
glabels2/ChangeLog
glabels2/README
glabels2/configure.in
glabels2/data/builder/object-editor.glade
glabels2/data/builder/prefs-dialog.glade
glabels2/data/builder/property-bar.glade
glabels2/data/builder/template-designer.glade
glabels2/gtk-doc.make
glabels2/src/color-combo-color-menu-item.c
glabels2/src/color-combo-color-menu-item.h
glabels2/src/color-combo-menu.h
glabels2/src/glabels-batch.c
glabels2/src/glabels.c
glabels2/src/merge-properties-dialog.h
glabels2/src/new-label-dialog.h
glabels2/src/object-editor-lsize-page.c
glabels2/src/object-editor.h
glabels2/src/prefs-dialog.h
glabels2/src/print-op.h
glabels2/src/template-designer.h
glabels2/src/ui-commands.c
glabels2/src/ui-property-bar.c
glabels2/src/ui-property-bar.h
glabels2/src/ui-sidebar.c
glabels2/src/ui-sidebar.h
glabels2/src/view.h
glabels2/src/wdgt-media-select.h
glabels2/src/wdgt-merge-menu.h
glabels2/src/wdgt-mini-preview.c
glabels2/src/wdgt-mini-preview.h
glabels2/src/wdgt-print-copies.c
glabels2/src/wdgt-print-copies.h
glabels2/src/wdgt-print-merge.c
glabels2/src/wdgt-print-merge.h
glabels2/src/wdgt-rotate-label.h
glabels2/src/window.h

index 5c8b6029ce6a65c7d8462127bc85d7e860e65829..3c18ab99b38e07e55acfef8b5c6a33c02ece3e6f 100644 (file)
@@ -1,3 +1,46 @@
+2009-02-21  JimEvins  <evins@snaught.com>
+
+       * README:
+       * configure.in:
+       * data/builder/object-editor.glade:
+       * data/builder/prefs-dialog.glade:
+       * data/builder/property-bar.glade:
+       * data/builder/template-designer.glade:
+       * gtk-doc.make:
+       * src/color-combo-color-menu-item.c:
+       * src/color-combo-color-menu-item.h:
+       * src/color-combo-menu.h:
+       * src/glabels-batch.c: (main):
+       * src/glabels.c: (main):
+       * src/merge-properties-dialog.h:
+       * src/new-label-dialog.h:
+       * src/object-editor-lsize-page.c:
+       (gl_object_editor_prepare_lsize_page), (lsize_prefs_changed_cb):
+       * src/object-editor.h:
+       * src/prefs-dialog.h:
+       * src/print-op.h:
+       * src/template-designer.h:
+       * src/ui-commands.c: (gl_ui_cmd_view_property_bar_tips_toggle),
+       (gl_ui_cmd_help_contents), (gl_ui_cmd_help_about):
+       * src/ui-property-bar.c:
+       * src/ui-property-bar.h:
+       * src/ui-sidebar.c: (gl_ui_sidebar_construct),
+       (selection_changed_cb):
+       * src/ui-sidebar.h:
+       * src/view.h:
+       * src/wdgt-media-select.h:
+       * src/wdgt-merge-menu.h:
+       * src/wdgt-mini-preview.c: (gl_wdgt_mini_preview_class_init):
+       * src/wdgt-mini-preview.h:
+       * src/wdgt-print-copies.c: (gl_wdgt_print_copies_construct):
+       * src/wdgt-print-copies.h:
+       * src/wdgt-print-merge.c: (gl_wdgt_print_merge_construct):
+       * src/wdgt-print-merge.h:
+       * src/wdgt-rotate-label.h:
+       * src/window.h:
+               Removed final dependencies on libgnome and libgnomeui.
+               Removed all currently deprecated symbols as of GTK 2.14.
+       
 2009-01-07  Jim Evins  <evins@snaught.com>
 
        * src/critical-error-handler.c: (critical_error_handler):
index a8c424164c0e0438eff733d63f3302b237738e4b..abbd9c92925982673d87c7ed05092fceaad6db2c 100644 (file)
@@ -21,10 +21,9 @@ cards using a laser or ink-jet printer.
 System Requirements
 ===================
 
-GTK+-2.10.x
-LIBGNOME[UI]-2.16.x
-LIBXML-2.6.x
-LIBGLADE-2.6.x
+GLIB+-2.18.x
+GTK+-2.14.x
+LIBXML-2.7.x
 
 All of these libraries are available as part of Gnome 2.16
 
index 416f6b88ade9a6938ecbae3c356d86df7b00c3bd..b37fb1b99de1c7af2975d27cb9c96d794e590cfe 100644 (file)
@@ -52,18 +52,14 @@ AC_SUBST(LIBGLABELS_VERSION_INFO)
 dnl ---------------------------------------------------------------------------
 dnl - Library dependencies
 dnl ---------------------------------------------------------------------------
-GLIB_REQUIRED=2.16.0
-GTK_REQUIRED=2.12.0
-LIBGNOME_REQUIRED=2.22.0
-LIBGNOMEUI_REQUIRED=2.22.0
+GLIB_REQUIRED=2.18.0
+GTK_REQUIRED=2.14.0
 LIBXML_REQUIRED=2.7.0
-LIBEBOOK_REQUIRED=2.22.0
+LIBEBOOK_REQUIRED=2.24.0
 
 dnl Make above strings available for packaging files (e.g. rpm spec files)
 AC_SUBST(GLIB_REQUIRED)
 AC_SUBST(GTK_REQUIRED)
-AC_SUBST(LIBGNOME_REQUIRED)
-AC_SUBST(LIBGNOMEUI_REQUIRED)
 AC_SUBST(LIBXML_REQUIRED)
 AC_SUBST(LIBEBOOK_REQUIRED)
 
@@ -92,8 +88,6 @@ dnl ---------------------------------------------------------------------------
 PKG_CHECK_MODULES(GLABELS, \
 glib-2.0 >= $GLIB_REQUIRED \
 gtk+-2.0 >= $GTK_REQUIRED \
-libgnome-2.0 >= $LIBGNOME_REQUIRED \
-libgnomeui-2.0 >= $LIBGNOMEUI_REQUIRED \
 libxml-2.0 >= $LIBXML_REQUIRED \
 $OPTIONAL_MODULES \
 )
@@ -128,7 +122,6 @@ if test "x$enable_deprecations" = "xyes"; then
 -DGDK_DISABLE_DEPRECATED \
 -DGTK_DISABLE_DEPRECATED \
 -DGDK_PIXBUF_DISABLE_DEPRECATED \
--DGNOME_DISABLE_DEPRECATED \
 "
    AC_SUBST(DISABLE_DEPRECATED_CFLAGS)
 fi
index 52d3069634d7f3b04ee96715592b65905b2715a5..ddf4fd6851f10217d85033ee679ea975ddb83ba7 100644 (file)
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">False</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">1 1 100 1 10 10</property>
+                             <property name="adjustment">1 1 100 1 10 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">False</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">1 0 5 0.01 0.1 0.1</property>
+                             <property name="adjustment">1 0 5 0.00999999977648 0.10000000149 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">False</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">1 0.25 4 0.25 1 1</property>
+                             <property name="adjustment">1 0.25 4 0.25 1 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">False</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">1 1 100 1 10 10</property>
+                                 <property name="adjustment">1 1 100 1 10 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">True</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">1 0 100 0.01 10 10</property>
+                             <property name="adjustment">1 0 100 0.00999999977648 10 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">True</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">1 0 100 0.01 10 10</property>
+                             <property name="adjustment">1 0 100 0.00999999977648 10 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">True</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">1 0 100 0.01 10 10</property>
+                             <property name="adjustment">1 0 100 0.00999999977648 10 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                              <property name="snap_to_ticks">True</property>
                              <property name="wrap">False</property>
-                             <property name="adjustment">0 -180 180 0.1 5 5</property>
+                             <property name="adjustment">0 -180 180 0.10000000149 5 0</property>
                            </widget>
                            <packing>
                              <property name="padding">0</property>
                          <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                          <property name="snap_to_ticks">True</property>
                          <property name="wrap">False</property>
-                         <property name="adjustment">0 0 100 0.01 10 10</property>
+                         <property name="adjustment">0 0 100 0.00999999977648 10 0</property>
                        </widget>
                        <packing>
                          <property name="left_attach">1</property>
                          <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                          <property name="snap_to_ticks">True</property>
                          <property name="wrap">False</property>
-                         <property name="adjustment">0 0 100 0.01 10 10</property>
+                         <property name="adjustment">0 0 100 0.00999999977648 10 0</property>
                        </widget>
                        <packing>
                          <property name="left_attach">1</property>
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">True</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">0 0 100 0.00999999977648 10 10</property>
+                                 <property name="adjustment">0 0 100 0.00999999977648 10 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">True</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">0 0 100 0.00999999977648 10 10</property>
+                                 <property name="adjustment">0 0 100 0.00999999977648 10 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">False</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">1 0 100 1 10 10</property>
+                                 <property name="adjustment">1 0 100 1 10 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
index cf050a6c176a5f9a64db0da65b1ca96860fe9500..872b2cd18988e9bdcccc8b8c6d31cdf7d08dc07f 100644 (file)
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">False</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">1 1 100 1 10 10</property>
+                                 <property name="adjustment">1 1 100 1 10 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">False</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">1 0 5 0.01 0.1 0.1</property>
+                                 <property name="adjustment">1 0 5 0.00999999977648 0.10000000149 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
                                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                                  <property name="snap_to_ticks">False</property>
                                  <property name="wrap">False</property>
-                                 <property name="adjustment">1 0.25 4 0.25 1 1</property>
+                                 <property name="adjustment">1 0.25 4 0.25 1 0</property>
                                </widget>
                                <packing>
                                  <property name="padding">0</property>
index 356ade7b135a224edd2db5013d7bae35059824a6..53956cecaa085a7bfc73f3904048d9b3befd0866 100644 (file)
@@ -87,7 +87,7 @@
                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                  <property name="snap_to_ticks">False</property>
                  <property name="wrap">False</property>
-                 <property name="adjustment">1 1 250 1 10 10</property>
+                 <property name="adjustment">1 1 250 1 10 0</property>
                </widget>
              </child>
            </widget>
              <property name="update_policy">GTK_UPDATE_ALWAYS</property>
              <property name="snap_to_ticks">False</property>
              <property name="wrap">False</property>
-             <property name="adjustment">1 0.25 4 0.25 1 1</property>
+             <property name="adjustment">1 0.25 4 0.25 1 0</property>
            </widget>
          </child>
        </widget>
index 4fc2b655e7e399f31a3651875c64b25f8b2106ba..1e85f373a17d44ef3cac1e176778d8de239303e0 100644 (file)
@@ -639,7 +639,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">1 0 100 1 10 10</property>
+                     <property name="adjustment">1 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="padding">0</property>
@@ -699,7 +699,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">1 0 100 1 10 10</property>
+                     <property name="adjustment">1 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="padding">0</property>
@@ -1193,7 +1193,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1214,7 +1214,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1235,7 +1235,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1256,7 +1256,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1305,7 +1305,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1354,7 +1354,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1592,7 +1592,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1613,7 +1613,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -1746,7 +1746,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2012,7 +2012,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2033,7 +2033,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2054,7 +2054,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2075,7 +2075,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2096,7 +2096,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2313,7 +2313,7 @@ This dialog will assist you in the creation of a custom gLabels template.</prope
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -2580,7 +2580,7 @@ two layouts.</property>
                  <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                  <property name="snap_to_ticks">False</property>
                  <property name="wrap">False</property>
-                 <property name="adjustment">1 1 2 1 1 1</property>
+                 <property name="adjustment">1 1 2 1 1 0</property>
                </widget>
                <packing>
                  <property name="padding">0</property>
@@ -3018,7 +3018,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">1 1 100 1 10 10</property>
+                     <property name="adjustment">1 1 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -3039,7 +3039,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">1 1 100 1 10 10</property>
+                     <property name="adjustment">1 1 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -3060,7 +3060,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">1 1 100 1 10 10</property>
+                     <property name="adjustment">1 1 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">2</property>
@@ -3081,7 +3081,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">1 1 100 1 10 10</property>
+                     <property name="adjustment">1 1 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">2</property>
@@ -3102,7 +3102,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -3123,7 +3123,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">2</property>
@@ -3144,7 +3144,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -3165,7 +3165,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">2</property>
@@ -3186,7 +3186,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -3207,7 +3207,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">2</property>
@@ -3228,7 +3228,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">1</property>
@@ -3249,7 +3249,7 @@ two layouts.</property>
                      <property name="update_policy">GTK_UPDATE_ALWAYS</property>
                      <property name="snap_to_ticks">False</property>
                      <property name="wrap">False</property>
-                     <property name="adjustment">0 0 100 1 10 10</property>
+                     <property name="adjustment">0 0 100 1 10 0</property>
                    </widget>
                    <packing>
                      <property name="left_attach">2</property>
index 6a30ea1d393c41e6ef2c27cc3811d1d25bac4f72..354ffb7c66c4e6151ed126f63320d03f7b21d6b3 100644 (file)
@@ -5,11 +5,11 @@
 ####################################
 
 if GTK_DOC_USE_LIBTOOL
-GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CFLAGS) $(CFLAGS)
-GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS)
+GTKDOC_CC = $(LIBTOOL) --mode=compile $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+GTKDOC_LD = $(LIBTOOL) --mode=link $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
 else
-GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CFLAGS) $(CFLAGS)
-GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS)
+GTKDOC_CC = $(CC) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
+GTKDOC_LD = $(CC) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS)
 endif
 
 # We set GPATH here; this gives us semantics for GNU make
@@ -128,7 +128,7 @@ maintainer-clean-local: clean
        cd $(srcdir) && rm -rf xml html
 
 install-data-local:
-       installfiles=`echo $(srcdir)/html/*`; \
+       -installfiles=`echo $(srcdir)/html/*`; \
        if test "$$installfiles" = '$(srcdir)/html/*'; \
        then echo '-- Nothing to install' ; \
        else \
@@ -139,8 +139,8 @@ install-data-local:
          done; \
          echo '-- Installing $(srcdir)/html/index.sgml' ; \
          $(INSTALL_DATA) $(srcdir)/html/index.sgml $(DESTDIR)$(TARGET_DIR) || :; \
-         (which gtkdoc-rebase >& /dev/null && \
-            gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR)) || : ; \
+         which gtkdoc-rebase >/dev/null && \
+           gtkdoc-rebase --relative --dest-dir=$(DESTDIR) --html-dir=$(DESTDIR)$(TARGET_DIR) ; \
        fi
        
 
@@ -165,8 +165,8 @@ dist-hook: dist-check-gtkdoc dist-hook-local
        -cp $(srcdir)/tmpl/*.sgml $(distdir)/tmpl
        -cp $(srcdir)/xml/*.xml $(distdir)/xml
        cp $(srcdir)/html/* $(distdir)/html
-       cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
-       cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
+       -cp $(srcdir)/$(DOC_MODULE).types $(distdir)/
+       -cp $(srcdir)/$(DOC_MODULE)-sections.txt $(distdir)/
        cd $(distdir) && rm -f $(DISTCLEANFILES)
        -gtkdoc-rebase --online --relative --html-dir=$(distdir)/html
 
index a98748b3551e9a941ed161dd63596ac694bd4024..45c253817eb39d3a8d44613f33e1a7b059b73bd0 100644 (file)
@@ -29,6 +29,7 @@
 #include <gtk/gtklabel.h>
 #include <gtk/gtkimage.h>
 #include "color.h"
+#include "util.h"
 
 
 /*===========================================*/
index cb5daa46b1e3771d87ef5d7391c0f7395c440c24..1fc70f271e212635c254acfae386abf565e9bdb8 100644 (file)
@@ -29,13 +29,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM (gl_color_combo_color_menu_item_get_type ())
 #define GL_COLOR_COMBO_COLOR_MENU_ITEM(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM, glColorComboColorMenuItem ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM, glColorComboColorMenuItem ))
 #define GL_COLOR_COMBO_COLOR_MENU_ITEM_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM, glColorComboColorMenuItemClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM, glColorComboColorMenuItemClass))
 #define GL_IS_COLOR_COMBO_COLOR_MENU_ITEM(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM))
 #define GL_IS_COLOR_COMBO_COLOR_MENU_ITEM_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_COLOR_COMBO_COLOR_MENU_ITEM))
 
 typedef struct _glColorComboColorMenuItem        glColorComboColorMenuItem;
 typedef struct _glColorComboColorMenuItemPrivate glColorComboColorMenuItemPrivate;
index e89a301794ddb6bd8646694666b18fb6be7268f8..78908bad234e4dde1140c22fc57134741fb9bcb6 100644 (file)
@@ -28,13 +28,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_COLOR_COMBO_MENU (gl_color_combo_menu_get_type ())
 #define GL_COLOR_COMBO_MENU(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_COLOR_COMBO_MENU, glColorComboMenu ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_COLOR_COMBO_MENU, glColorComboMenu ))
 #define GL_COLOR_COMBO_MENU_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_COLOR_COMBO_MENU, glColorComboMenuClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_COLOR_COMBO_MENU, glColorComboMenuClass))
 #define GL_IS_COLOR_COMBO_MENU(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_COLOR_COMBO_MENU))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_COLOR_COMBO_MENU))
 #define GL_IS_COLOR_COMBO_MENU_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_COLOR_COMBO_MENU))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_COLOR_COMBO_MENU))
 
 typedef struct _glColorComboMenu        glColorComboMenu;
 typedef struct _glColorComboMenuPrivate glColorComboMenuPrivate;
index 41ebf9d657d75f837a441d86a9b76299e7205810..59408122a5aa884f068b96bb5818e7dcceb3d9fb 100644 (file)
@@ -25,7 +25,6 @@
 #include <config.h>
 
 #include <glib/gi18n.h>
-#include <libgnome/libgnome.h>
 
 #include "merge-init.h"
 #include "xml-label.h"
@@ -80,7 +79,6 @@ int
 main (int argc, char **argv)
 {
        GOptionContext    *option_context;
-        GnomeProgram      *program;
         GList             *p, *file_list = NULL;
         gchar             *abs_fn;
         glLabel           *label = NULL;
@@ -88,6 +86,7 @@ main (int argc, char **argv)
         glXMLLabelStatus   status;
         glPrintOp         *print_op;
        gchar             *utf8_filename;
+        GError            *error = NULL;
 
         bindtextdomain (GETTEXT_PACKAGE, GLABELS_LOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -98,11 +97,15 @@ main (int argc, char **argv)
 
 
         /* Initialize minimal gnome program */
-        program = gnome_program_init ("glabels-batch", VERSION,
-                                      LIBGNOME_MODULE, argc, argv,
-                                     GNOME_PARAM_GOPTION_CONTEXT, option_context,
-                                      GNOME_PROGRAM_STANDARD_PROPERTIES,
-                                      NULL);
+        gtk_init (&argc, &argv);
+        if (!g_option_context_parse (option_context, &argc, &argv, &error))
+       {
+               g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
+                       error->message, argv[0]);
+               g_error_free (error);
+               return 1;
+       }
+
 
         /* create file list */
        if (remaining_args != NULL) {
index 832b08213c22d3ad30c027906e9eab21f324731c..7da1ec31d9f20ef4ab321c849fd726fab555cb95 100644 (file)
@@ -25,9 +25,6 @@
 #include <config.h>
 
 #include <glib/gi18n.h>
-#include <libgnome/libgnome.h>
-#include <libgnomeui/libgnomeui.h>
-#include <libgnomeui/gnome-window-icon.h>
 
 #include "warning-handler.h"
 #include "critical-error-handler.h"
 #include "window.h"
 #include "file.h"
 
+
 /*========================================================*/
 /* Private macros and constants.                          */
 /*========================================================*/
 
+
 /*========================================================*/
 /* Private globals                                        */
 /*========================================================*/
 
+
 /*========================================================*/
 /* Local function prototypes                              */
 /*========================================================*/
-gboolean save_session_cb (GnomeClient        *client,
-                         gint                phase,
-                         GnomeRestartStyle   save_style,
-                         gint                shutdown,
-                         GnomeInteractStyle  interact_style,
-                         gint                fast,
-                         gpointer            client_data);
 
-void client_die_cb       (GnomeClient        *client,
-                         gpointer            client_data);
 
 /****************************************************************************/
 /* main program                                                             */
@@ -77,12 +68,11 @@ main (int argc, char **argv)
        };
 
        GOptionContext *option_context;
-       GnomeProgram   *program;
        gchar          *icon_file;
-       GnomeClient    *client;
        GList          *file_list = NULL, *p;
        GtkWidget      *win;
        gchar          *utf8_filename;
+        GError         *error = NULL;
 
        bindtextdomain (GETTEXT_PACKAGE, GLABELS_LOCALEDIR);
        bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
@@ -92,12 +82,16 @@ main (int argc, char **argv)
        g_option_context_add_main_entries (option_context, option_entries, GETTEXT_PACKAGE);
 
 
-       /* Initialize gnome program */
-       program = gnome_program_init ("glabels", VERSION,
-                                     LIBGNOMEUI_MODULE, argc, argv,
-                                     GNOME_PARAM_GOPTION_CONTEXT, option_context,
-                                     GNOME_PROGRAM_STANDARD_PROPERTIES,
-                                     NULL);
+       /* Initialize program */
+        gtk_init( &argc, &argv );
+        if (!g_option_context_parse (option_context, &argc, &argv, &error))
+       {
+               g_print(_("%s\nRun '%s --help' to see a full list of available command line options.\n"),
+                       error->message, argv[0]);
+               g_error_free (error);
+               return 1;
+       }
+
 
        /* Install GUI handlers for critical error and warning messages */
        gl_critical_error_handler_init();
@@ -111,7 +105,7 @@ main (int argc, char **argv)
        }
        else
        {
-               gnome_window_icon_set_default_from_file (icon_file);
+               gtk_window_set_default_icon_from_file (icon_file, NULL);
        }
 
        
@@ -125,16 +119,6 @@ main (int argc, char **argv)
        gl_recent_init ();
        
 
-       client = gnome_master_client();
-
-       g_signal_connect (G_OBJECT (client), "save_yourself",
-                         G_CALLBACK (save_session_cb),
-                         (gpointer)argv[0]);
-
-       g_signal_connect (G_OBJECT (client), "die",
-                         G_CALLBACK (client_die_cb), NULL);
-
-
        /* Parse args and build the list of files to be loaded at startup */
        if (remaining_args != NULL) {
                gint i, num_args;
@@ -166,53 +150,6 @@ main (int argc, char **argv)
        /* Begin main loop */
        gtk_main();
 
-       g_object_unref (G_OBJECT (program));
-
        return 0;
 }
 
-/*---------------------------------------------------------------------------*/
-/* PRIVATE.  "Save session" callback.                                        */
-/*---------------------------------------------------------------------------*/
-gboolean save_session_cb (GnomeClient        *client,
-                         gint                phase,
-                         GnomeRestartStyle   save_style,
-                         gint                shutdown,
-                         GnomeInteractStyle  interact_style,
-                         gint                fast,
-                         gpointer            client_data)
-{
-       gchar       *argv[128];
-       gint         argc;
-       const GList *window_list;
-       GList       *p;
-       glWindow    *window;
-       glLabel     *label;
-
-       argv[0] = (gchar *)client_data;
-       argc = 1;
-
-       window_list = gl_window_get_window_list();
-       for ( p=(GList *)window_list; p != NULL; p=p->next ) {
-               window = GL_WINDOW(p->data);
-               if ( !gl_window_is_empty (window) ) {
-                       label = GL_VIEW(window->view)->label;
-                       argv[argc++] = gl_label_get_filename (label);
-               }
-       }
-       gnome_client_set_clone_command(client, argc, argv);
-       gnome_client_set_restart_command(client, argc, argv);
-       
-       return TRUE;
-}
-
-/*---------------------------------------------------------------------------*/
-/* PRIVATE.  "Die" callback.                                                 */
-/*---------------------------------------------------------------------------*/
-void client_die_cb (GnomeClient *client,
-                   gpointer     client_data)
-{
-       gl_file_exit ();
-}
-
-
index f98ea7bfb68b79d33caa18f7b2cca3f625aa48ba..218ee58074ffe2e9bb4cdc1e37169bbabae1862d 100644 (file)
 G_BEGIN_DECLS
 
 #define GL_TYPE_MERGE_PROPERTIES_DIALOG            (gl_merge_properties_dialog_get_type ())
-#define GL_MERGE_PROPERTIES_DIALOG(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_MERGE_PROPERTIES_DIALOG, glMergePropertiesDialog))
-#define GL_MERGE_PROPERTIES_DIALOG_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_MERGE_PROPERTIES_DIALOG, glMergePropertiesDialogClass))
-#define GL_IS_MERGE_PROPERTIES_DIALOG(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_MERGE_PROPERTIES_DIALOG))
-#define GL_IS_MERGE_PROPERTIES_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_MERGE_PROPERTIES_DIALOG))
-#define GL_MERGE_PROPERTIES_DIALOG_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_MERGE_PROPERTIES_DIALOG, glMergePropertiesDialogClass))
+#define GL_MERGE_PROPERTIES_DIALOG(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_MERGE_PROPERTIES_DIALOG, glMergePropertiesDialog))
+#define GL_MERGE_PROPERTIES_DIALOG_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_MERGE_PROPERTIES_DIALOG, glMergePropertiesDialogClass))
+#define GL_IS_MERGE_PROPERTIES_DIALOG(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_MERGE_PROPERTIES_DIALOG))
+#define GL_IS_MERGE_PROPERTIES_DIALOG_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_MERGE_PROPERTIES_DIALOG))
+#define GL_MERGE_PROPERTIES_DIALOG_GET_CLASS(obj) \
+        (G_TYPE_CHECK_GET_CLASS ((obj), GL_TYPE_MERGE_PROPERTIES_DIALOG, glMergePropertiesDialogClass))
 
 
 typedef struct _glMergePropertiesDialog         glMergePropertiesDialog;
index a38a48d9533a2fb5f29ff8482722c16b9c3d7ff1..15e2530b0efa58863e641917c7969e65d3a04ecc 100644 (file)
 G_BEGIN_DECLS
 
 #define GL_TYPE_NEW_LABEL_DIALOG            (gl_new_label_dialog_get_type ())
-#define GL_NEW_LABEL_DIALOG(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_NEW_LABEL_DIALOG, glNewLabelDialog))
-#define GL_NEW_LABEL_DIALOG_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_NEW_LABEL_DIALOG, glNewLabelDialogClass))
-#define GL_IS_NEW_LABEL_DIALOG(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_NEW_LABEL_DIALOG))
-#define GL_IS_NEW_LABEL_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_NEW_LABEL_DIALOG))
-#define GL_NEW_LABEL_DIALOG_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_NEW_LABEL_DIALOG, glNewLabelDialogClass))
+#define GL_NEW_LABEL_DIALOG(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_NEW_LABEL_DIALOG, glNewLabelDialog))
+#define GL_NEW_LABEL_DIALOG_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_NEW_LABEL_DIALOG, glNewLabelDialogClass))
+#define GL_IS_NEW_LABEL_DIALOG(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_NEW_LABEL_DIALOG))
+#define GL_IS_NEW_LABEL_DIALOG_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_NEW_LABEL_DIALOG))
+#define GL_NEW_LABEL_DIALOG_GET_CLASS(obj) \
+        (G_TYPE_CHECK_GET_CLASS ((obj), GL_TYPE_NEW_LABEL_DIALOG, glNewLabelDialogClass))
 
 
 typedef struct _glNewLabelDialog         glNewLabelDialog;
index 2fb29ac1a9a36f3d72d4fbe6964b8e41896cecaa..cbc18f74dc6d20bb7e35b097bac6907fc08dedc8 100644 (file)
@@ -89,7 +89,7 @@ gl_object_editor_prepare_lsize_page (glObjectEditor       *editor)
        /* Modify widgets based on configuration */
        gtk_spin_button_set_digits (GTK_SPIN_BUTTON(editor->priv->lsize_r_spin), digits);
        gtk_spin_button_set_increments (GTK_SPIN_BUTTON(editor->priv->lsize_r_spin),
-                                       climb_rate, 10.0*climb_rate);
+                                       climb_rate, 0);
        gtk_label_set_text (GTK_LABEL(editor->priv->lsize_r_units_label), units_string);
 
        /* Un-hide */
@@ -237,7 +237,7 @@ lsize_prefs_changed_cb (glObjectEditor *editor)
        gtk_spin_button_set_digits (GTK_SPIN_BUTTON(editor->priv->lsize_r_spin),
                                    digits);
        gtk_spin_button_set_increments (GTK_SPIN_BUTTON(editor->priv->lsize_r_spin),
-                                       climb_rate, 10.0*climb_rate);
+                                       climb_rate, 0);
         editor->priv->stop_signals = FALSE;
 
        /* Update r_units_label */
index fe3bbe56ac326f3ce908b7de7d218b8b0480a5c4..54f86a4d2705eccd17790fbfed2c2adae239401e 100644 (file)
@@ -52,11 +52,16 @@ typedef enum {
 } glObjectEditorOption;
 
 #define GL_TYPE_OBJECT_EDITOR            (gl_object_editor_get_type ())
-#define GL_OBJECT_EDITOR(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_OBJECT_EDITOR, glObjectEditor))
-#define GL_OBJECT_EDITOR_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_OBJECT_EDITOR, glObjectEditorClass))
-#define GL_IS_OBJECT_EDITOR(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_OBJECT_EDITOR))
-#define GL_IS_OBJECT_EDITOR_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_OBJECT_EDITOR))
-#define GL_OBJECT_EDITOR_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_OBJECT_EDITOR, glObjectEditorClass))
+#define GL_OBJECT_EDITOR(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_OBJECT_EDITOR, glObjectEditor))
+#define GL_OBJECT_EDITOR_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_OBJECT_EDITOR, glObjectEditorClass))
+#define GL_IS_OBJECT_EDITOR(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_OBJECT_EDITOR))
+#define GL_IS_OBJECT_EDITOR_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_OBJECT_EDITOR))
+#define GL_OBJECT_EDITOR_GET_CLASS(obj) \
+        (G_TYPE_CHECK_GET_CLASS ((obj), GL_TYPE_OBJECT_EDITOR, glObjectEditorClass))
 
 
 typedef struct _glObjectEditor         glObjectEditor;
@@ -83,7 +88,7 @@ struct  _glObjectEditorClass
 
 
 
-GtkType     gl_object_editor_get_type             (void) G_GNUC_CONST;
+GType       gl_object_editor_get_type             (void) G_GNUC_CONST;
 
 GtkWidget  *gl_object_editor_new                  (gchar               *image,
                                                   gchar               *title,
index 8ec8e9291a0605756f1addf3ceddf35a8cdb934e..4ed84ec36487731ad198dd8b206f516e916d9c74 100644 (file)
 G_BEGIN_DECLS
 
 #define GL_TYPE_PREFS_DIALOG            (gl_prefs_dialog_get_type ())
-#define GL_PREFS_DIALOG(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_PREFS_DIALOG, glPrefsDialog))
-#define GL_PREFS_DIALOG_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_PREFS_DIALOG, glPrefsDialogClass))
-#define GL_IS_PREFS_DIALOG(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_PREFS_DIALOG))
-#define GL_IS_PREFS_DIALOG_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_PREFS_DIALOG))
-#define GL_PREFS_DIALOG_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_PREFS_DIALOG, glPrefsDialogClass))
+#define GL_PREFS_DIALOG(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_PREFS_DIALOG, glPrefsDialog))
+#define GL_PREFS_DIALOG_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_PREFS_DIALOG, glPrefsDialogClass))
+#define GL_IS_PREFS_DIALOG(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_PREFS_DIALOG))
+#define GL_IS_PREFS_DIALOG_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_PREFS_DIALOG))
+#define GL_PREFS_DIALOG_GET_CLASS(obj) \
+        (G_TYPE_CHECK_GET_CLASS ((obj), GL_TYPE_PREFS_DIALOG, glPrefsDialogClass))
 
 
 typedef struct _glPrefsDialog          glPrefsDialog;
index 75c893c5c7fb9d402810ad641c117dfde4b720fa..78ffdbd25308225d2e65cca8ef6ab564c66fe742 100644 (file)
 G_BEGIN_DECLS
 
 #define GL_TYPE_PRINT_OP            (gl_print_op_get_type ())
-#define GL_PRINT_OP(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_PRINT_OP, glPrintOp))
-#define GL_PRINT_OP_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_PRINT_OP, glPrintOpClass))
-#define GL_IS_PRINT_OP(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_PRINT_OP))
-#define GL_IS_PRINT_OP_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_PRINT_OP))
-#define GL_PRINT_OP_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_PRINT_OP, glPrintOpClass))
+#define GL_PRINT_OP(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_PRINT_OP, glPrintOp))
+#define GL_PRINT_OP_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_PRINT_OP, glPrintOpClass))
+#define GL_IS_PRINT_OP(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_PRINT_OP))
+#define GL_IS_PRINT_OP_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_PRINT_OP))
+#define GL_PRINT_OP_GET_CLASS(obj) \
+        (G_TYPE_CHECK_GET_CLASS ((obj), GL_TYPE_PRINT_OP, glPrintOpClass))
 
 
 typedef struct _glPrintOp         glPrintOp;
index 889b52a717a88c01dc58363e22677406a7a0e871..c8c90462c95c61d75828ad061fc4bd395ea54177 100644 (file)
 
 G_BEGIN_DECLS
 
-#define GL_TYPE_TEMPLATE_DESIGNER            (gl_template_designer_get_type ())
-#define GL_TEMPLATE_DESIGNER(obj)            (GTK_CHECK_CAST ((obj), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesigner))
-#define GL_TEMPLATE_DESIGNER_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesignerClass))
-#define GL_IS_TEMPLATE_DESIGNER(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_TEMPLATE_DESIGNER))
-#define GL_IS_TEMPLATE_DESIGNER_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_TEMPLATE_DESIGNER))
-#define GL_TEMPLATE_DESIGNER_GET_CLASS(obj)  (GTK_CHECK_GET_CLASS ((obj), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesignerClass))
+#define GL_TYPE_TEMPLATE_DESIGNER (gl_template_designer_get_type ())
+#define GL_TEMPLATE_DESIGNER(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST ((obj), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesigner))
+#define GL_TEMPLATE_DESIGNER_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesignerClass))
+#define GL_IS_TEMPLATE_DESIGNER(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_TEMPLATE_DESIGNER))
+#define GL_IS_TEMPLATE_DESIGNER_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_TEMPLATE_DESIGNER))
+#define GL_TEMPLATE_DESIGNER_GET_CLASS(obj) \
+        (G_TYPE_CHECK_GET_CLASS ((obj), GL_TYPE_TEMPLATE_DESIGNER, glTemplateDesignerClass))
 
 
 typedef struct _glTemplateDesigner              glTemplateDesigner;
index eb3b342c370b363533ae825921a3822bb51c48c5..2be9a248642d64b471583289da83d59d9a2aeccf 100644 (file)
@@ -5,7 +5,7 @@
  *
  *  ui-commands.c:  GLabels UI commands module
  *
- *  Copyright (C) 2001-2003  Jim Evins <evins@snaught.com>.
+ *  Copyright (C) 2001-2009  Jim Evins <evins@snaught.com>.
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -29,7 +29,6 @@
 #include <glib/gi18n.h>
 #include <gtk/gtkwindow.h>
 #include <gtk/gtkaboutdialog.h>
-#include <libgnome/gnome-help.h>
 
 #include "view.h"
 #include "file.h"
@@ -430,7 +429,7 @@ gl_ui_cmd_view_property_bar_tips_toggle (GtkToggleAction *action,
         state =  gtk_toggle_action_get_active (action);
 
         gl_prefs->property_toolbar_view_tooltips = state;
-        gl_ui_property_bar_set_tooltips (window->property_bar, state);
+        gtk_widget_set_has_tooltip (GTK_WIDGET (window->property_bar), state);
         gl_prefs_model_save_settings (gl_prefs);
 
         gl_debug (DEBUG_COMMANDS, "END");
@@ -1054,7 +1053,10 @@ gl_ui_cmd_help_contents (GtkAction *action,
         g_return_if_fail (action && GTK_IS_ACTION(action));
         g_return_if_fail (window && GL_IS_WINDOW(window));
 
-        gnome_help_display_with_doc_id (NULL, NULL, "glabels.xml", NULL, &error);
+        gtk_show_uri (gtk_widget_get_screen (GTK_WIDGET (window)),
+                      "ghelp:glabels",
+                      GDK_CURRENT_TIME, 
+                      &error);
         
         if (error != NULL)
         {
@@ -1098,7 +1100,7 @@ gl_ui_cmd_help_about (GtkAction *action,
                 NULL
         };
         
-        const gchar *copy_text = "Copyright \xc2\xa9 2001-2007 Jim Evins";
+        const gchar *copy_text = "Copyright \xc2\xa9 2001-2009 Jim Evins";
 
         const gchar *about_text = _("A label and business card creation program.\n");
 
index 2cfca42fc2b91fc46cfba6e1bdeaa543166c8643..4e60561a312162f8370511b93faad19069e45e14 100644 (file)
@@ -492,36 +492,6 @@ gl_ui_property_bar_set_view (glUIPropertyBar *this,
 }
 
 
-/****************************************************************************/
-/** Set visiblity of property bar's tooltips.                               */
-/****************************************************************************/
-void
-gl_ui_property_bar_set_tooltips (glUIPropertyBar *this,
-                                gboolean         state)
-{
-       GtkTooltipsData *data;
-
-       gl_debug (DEBUG_PROPERTY_BAR, "START");
-
-       g_return_if_fail (this && GL_IS_UI_PROPERTY_BAR(this));
-
-       /* HACK: peek into one of our widgets to get the tooltips group created by builder. */
-       data = gtk_tooltips_data_get (this->priv->font_size_spin);
-       g_return_if_fail (data);
-
-       if (state)
-        {
-               gtk_tooltips_enable (data->tooltips);
-       }
-        else
-        {
-               gtk_tooltips_disable (data->tooltips);
-       }
-
-       gl_debug (DEBUG_PROPERTY_BAR, "END");
-}
-
-
 /*---------------------------------------------------------------------------*/
 /* PRIVATE.  View "selection state changed" callback.                        */
 /*---------------------------------------------------------------------------*/
index add154f73405b4e503df4575adc93ac56d5d2755..37985ef76ccd8fd3def93dc488ef4e319e3f8cad 100644 (file)
@@ -33,13 +33,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_UI_PROPERTY_BAR (gl_ui_property_bar_get_type ())
 #define GL_UI_PROPERTY_BAR(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_UI_PROPERTY_BAR, glUIPropertyBar ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_UI_PROPERTY_BAR, glUIPropertyBar ))
 #define GL_UI_PROPERTY_BAR_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_UI_PROPERTY_BAR, glUIPropertyBarClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_UI_PROPERTY_BAR, glUIPropertyBarClass))
 #define GL_IS_UI_PROPERTY_BAR(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_UI_PROPERTY_BAR))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_UI_PROPERTY_BAR))
 #define GL_IS_UI_PROPERTY_BAR_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_UI_PROPERTY_BAR))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_UI_PROPERTY_BAR))
 
 typedef struct _glUIPropertyBar        glUIPropertyBar;
 typedef struct _glUIPropertyBarClass   glUIPropertyBarClass;
@@ -64,10 +64,6 @@ GtkWidget   *gl_ui_property_bar_new               (void);
 void         gl_ui_property_bar_set_view          (glUIPropertyBar *this,
                                                   glView          *view);
 
-void         gl_ui_property_bar_set_tooltips      (glUIPropertyBar *this,
-                                                  gboolean         state);
-
-
 
 G_END_DECLS
 
index f8c398f4eea89d90803f76ade1a572ec40ccda9b..0475616a4e763e81bb0c4c478971dbd2568181a6 100644 (file)
@@ -154,7 +154,7 @@ gl_ui_sidebar_construct (glUISidebar       *sidebar)
                                                           GL_OBJECT_EDITOR_EMPTY,
                                                           NULL);
 
-       sidebar->priv->child = gtk_widget_ref (sidebar->priv->empty_child);
+       sidebar->priv->child = g_object_ref (sidebar->priv->empty_child);
        gtk_widget_show (sidebar->priv->child);
        gtk_container_add (GTK_CONTAINER(sidebar), sidebar->priv->child);
 
@@ -200,11 +200,11 @@ selection_changed_cb (glView      *view,
 
        if (gl_view_is_selection_empty (view) || !gl_view_is_selection_atomic (view)) {
 
-               sidebar->priv->child = gtk_widget_ref (sidebar->priv->empty_child);
+               sidebar->priv->child = g_object_ref (sidebar->priv->empty_child);
                
        } else {
 
-               sidebar->priv->child = gtk_widget_ref (gl_view_get_editor (view));
+               sidebar->priv->child = g_object_ref (gl_view_get_editor (view));
 
        }
 
index 9ec1264d25d98ba1d3c1150f253307acedfac81f..870c69f8c4304cb06b4abe4522d2a7d23bd34292 100644 (file)
@@ -33,13 +33,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_UI_SIDEBAR (gl_ui_sidebar_get_type ())
 #define GL_UI_SIDEBAR(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_UI_SIDEBAR, glUISidebar ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_UI_SIDEBAR, glUISidebar ))
 #define GL_UI_SIDEBAR_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_UI_SIDEBAR, glUISidebarClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_UI_SIDEBAR, glUISidebarClass))
 #define GL_IS_UI_SIDEBAR(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_UI_SIDEBAR))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_UI_SIDEBAR))
 #define GL_IS_UI_SIDEBAR_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_UI_SIDEBAR))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_UI_SIDEBAR))
 
 typedef struct _glUISidebar        glUISidebar;
 typedef struct _glUISidebarClass   glUISidebarClass;
index 38c3ed804a2c6c4fd83122cc7e838fffffc45629..4bf4141e214f9e1795ea1590990287bb6799ac5f 100644 (file)
@@ -43,10 +43,14 @@ typedef enum {
 } glViewState;
 
 #define GL_TYPE_VIEW            (gl_view_get_type ())
-#define GL_VIEW(obj)            (GTK_CHECK_CAST((obj), GL_TYPE_VIEW, glView ))
-#define GL_VIEW_CLASS(klass)    (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW, glViewClass))
-#define GL_IS_VIEW(obj)         (GTK_CHECK_TYPE ((obj), GL_TYPE_VIEW))
-#define GL_IS_VIEW_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW))
+#define GL_VIEW(obj) \
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_VIEW, glView ))
+#define GL_VIEW_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_VIEW, glViewClass))
+#define GL_IS_VIEW(obj) \
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_VIEW))
+#define GL_IS_VIEW_CLASS(klass) \
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_VIEW))
 
 typedef struct _glView      glView;
 typedef struct _glViewClass glViewClass;
index c8e95fce283df1096ac63efea1ca1cf6fc14d376..9a5481339c9d360fff5dd4cad3b8a91a6eb594dc 100644 (file)
@@ -31,13 +31,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WDGT_MEDIA_SELECT (gl_wdgt_media_select_get_type ())
 #define GL_WDGT_MEDIA_SELECT(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_MEDIA_SELECT, glWdgtMediaSelect ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WDGT_MEDIA_SELECT, glWdgtMediaSelect ))
 #define GL_WDGT_MEDIA_SELECT_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MEDIA_SELECT, glWdgtMediaSelectClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MEDIA_SELECT, glWdgtMediaSelectClass))
 #define GL_IS_WDGT_MEDIA_SELECT(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_MEDIA_SELECT))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WDGT_MEDIA_SELECT))
 #define GL_IS_WDGT_MEDIA_SELECT_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MEDIA_SELECT))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MEDIA_SELECT))
 
 typedef struct _glWdgtMediaSelect         glWdgtMediaSelect;
 typedef struct _glWdgtMediaSelectClass    glWdgtMediaSelectClass;
index 943709d97dc9485385b0d2819a74accfa2fa3e43..60d4ac50ccbc7f50bfbdb228745d61ed806f49c4 100644 (file)
@@ -31,13 +31,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WDGT_MERGE_MENU (gl_wdgt_merge_menu_get_type ())
 #define GL_WDGT_MERGE_MENU(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_MERGE_MENU, glWdgtMergeMenu ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WDGT_MERGE_MENU, glWdgtMergeMenu ))
 #define GL_WDGT_MERGE_MENU_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MERGE_MENU, glWdgtMergeMenuClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MERGE_MENU, glWdgtMergeMenuClass))
 #define GL_IS_WDGT_MERGE_MENU(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_MERGE_MENU))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WDGT_MERGE_MENU))
 #define GL_IS_WDGT_MERGE_MENU_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MERGE_MENU))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MERGE_MENU))
 
 
 typedef struct _glWdgtMergeMenu         glWdgtMergeMenu;
index c539e6bff84c5fdcd1b2c6a4060c0973d6ba201d..13c03b3377517171dc656c71f96fce456dc477de 100644 (file)
@@ -150,7 +150,7 @@ gl_wdgt_mini_preview_class_init (glWdgtMiniPreviewClass *class)
 
        gl_debug (DEBUG_MINI_PREVIEW, "START");
 
-       gl_wdgt_mini_preview_parent_class = gtk_type_class (gtk_hbox_get_type ());
+       gl_wdgt_mini_preview_parent_class = g_type_class_peek_parent (class);
 
        object_class->finalize = gl_wdgt_mini_preview_finalize;
 
index 8754b8578d75d4c5ceb7baa750bd843b30ad2258..679687930e52423ba3e79c03f30a23bcee82b0c7 100644 (file)
@@ -32,13 +32,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WDGT_MINI_PREVIEW (gl_wdgt_mini_preview_get_type ())
 #define GL_WDGT_MINI_PREVIEW(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_MINI_PREVIEW, glWdgtMiniPreview ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WDGT_MINI_PREVIEW, glWdgtMiniPreview ))
 #define GL_WDGT_MINI_PREVIEW_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MINI_PREVIEW, glWdgtMiniPreviewClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_MINI_PREVIEW, glWdgtMiniPreviewClass))
 #define GL_IS_WDGT_MINI_PREVIEW(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_MINI_PREVIEW))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WDGT_MINI_PREVIEW))
 #define GL_IS_WDGT_MINI_PREVIEW_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MINI_PREVIEW))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_MINI_PREVIEW))
 
 typedef struct _glWdgtMiniPreview        glWdgtMiniPreview;
 typedef struct _glWdgtMiniPreviewPrivate glWdgtMiniPreviewPrivate;
index f09522a01cfb032f9d8143deac734952113af848..023d71262a3e2436d91d7b531ebf3720f709d482 100644 (file)
@@ -152,7 +152,7 @@ gl_wdgt_print_copies_construct (glWdgtPrintCopies *copies,
        copies->sheets_radio =
            gtk_radio_button_new_with_label (radio_group, _("Sheets:"));
        gtk_box_pack_start (GTK_BOX(whbox1), copies->sheets_radio, FALSE, FALSE, 0);
-       adjust = gtk_adjustment_new (1, 1.0, 10.0, 1.0, 10.0, 10.0);
+       adjust = gtk_adjustment_new (1, 1.0, 10.0, 1.0, 10.0, 0.0);
        copies->sheets_spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjust),
                                                   1.0, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), copies->sheets_spin, FALSE, FALSE, 0);
@@ -172,14 +172,14 @@ gl_wdgt_print_copies_construct (glWdgtPrintCopies *copies,
        gtk_box_pack_start (GTK_BOX(whbox1), copies->labels_radio, FALSE, FALSE, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), gtk_label_new (_("from:")), FALSE, FALSE, 0);
        adjust = gtk_adjustment_new (1, 1.0, copies->labels_per_sheet,
-                                    1.0, 10.0, 10.0);
+                                    1.0, 10.0, 0.0);
        copies->first_spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjust),
                                                  1.0, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), copies->first_spin, FALSE, FALSE, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), gtk_label_new (_("to:")), FALSE, FALSE, 0);
        adjust = gtk_adjustment_new (copies->labels_per_sheet,
                                     1.0, copies->labels_per_sheet,
-                                    1.0, 10.0, 10.0);
+                                    1.0, 10.0, 0.0);
        copies->last_spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjust),
                                                 1.0, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), copies->last_spin, FALSE, FALSE, 0);
index 7e24dee3c98b6729c64aa8d9d3d9c3a12f625735..ffae2f11ed64cc637a5b12d0f72f5031cff38606 100644 (file)
@@ -32,13 +32,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WDGT_PRINT_COPIES (gl_wdgt_print_copies_get_type ())
 #define GL_WDGT_PRINT_COPIES(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_PRINT_COPIES, glWdgtPrintCopies ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WDGT_PRINT_COPIES, glWdgtPrintCopies ))
 #define GL_WDGT_PRINT_COPIES_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_PRINT_COPIES, glWdgtPrintCopiesClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_PRINT_COPIES, glWdgtPrintCopiesClass))
 #define GL_IS_WDGT_PRINT_COPIES(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_PRINT_COPIES))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WDGT_PRINT_COPIES))
 #define GL_IS_WDGT_PRINT_COPIES_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_PRINT_COPIES))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_PRINT_COPIES))
 
 typedef struct _glWdgtPrintCopies      glWdgtPrintCopies;
 typedef struct _glWdgtPrintCopiesClass glWdgtPrintCopiesClass;
index bc1fe6fdd87a86b768c7ed738f0e01654c7c6702..da093f2779a34b835582dc4c7107e69efc221bc6 100644 (file)
@@ -153,8 +153,7 @@ gl_wdgt_print_merge_construct (glWdgtPrintMerge * merge,
        gtk_box_pack_start (GTK_BOX(whbox1),
                                gtk_label_new (_("Start on label")), FALSE, FALSE, 0);
        adjust =
-           gtk_adjustment_new (1, 1.0, merge->labels_per_sheet, 1.0, 10.0,
-                               10.0);
+                gtk_adjustment_new (1, 1.0, merge->labels_per_sheet, 1.0, 10.0, 0.0);
        merge->first_spin =
            gtk_spin_button_new (GTK_ADJUSTMENT (adjust), 1.0, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), merge->first_spin, FALSE, FALSE, 0);
@@ -169,7 +168,7 @@ gl_wdgt_print_merge_construct (glWdgtPrintMerge * merge,
        gtk_box_pack_start (GTK_BOX(wvbox), whbox1, FALSE, FALSE, 0);
        gtk_box_pack_start (GTK_BOX(whbox1),
                                gtk_label_new (_("Copies:")), FALSE, FALSE, 0);
-       adjust = gtk_adjustment_new (1, 1.0, 10.0, 1.0, 10.0, 10.0);
+       adjust = gtk_adjustment_new (1, 1.0, 10.0, 1.0, 10.0, 0.0);
        merge->copies_spin = gtk_spin_button_new (GTK_ADJUSTMENT (adjust),
                                                   1.0, 0);
        gtk_box_pack_start (GTK_BOX(whbox1), merge->copies_spin, FALSE, FALSE, 0);
index 9e3a24da743b17cde4fe7d277e36c02abb3a6c49..1b16bf89b2a45c61cf7e722abf26f95ab8bc962e 100644 (file)
@@ -32,13 +32,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WDGT_PRINT_MERGE (gl_wdgt_print_merge_get_type ())
 #define GL_WDGT_PRINT_MERGE(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_PRINT_MERGE, glWdgtPrintMerge ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WDGT_PRINT_MERGE, glWdgtPrintMerge ))
 #define GL_WDGT_PRINT_MERGE_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_PRINT_MERGE, glWdgtPrintMergeClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_PRINT_MERGE, glWdgtPrintMergeClass))
 #define GL_IS_WDGT_PRINT_MERGE(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_PRINT_MERGE))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WDGT_PRINT_MERGE))
 #define GL_IS_WDGT_PRINT_MERGE_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_PRINT_MERGE))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_PRINT_MERGE))
 
 typedef struct _glWdgtPrintMerge      glWdgtPrintMerge;
 typedef struct _glWdgtPrintMergeClass glWdgtPrintMergeClass;
index d3a0dacab605347a11fb26b135d660c682ffb93a..c2bc1912d2249af04516c9358da94d7e97498add 100644 (file)
@@ -31,13 +31,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WDGT_ROTATE_LABEL (gl_wdgt_rotate_label_get_type ())
 #define GL_WDGT_ROTATE_LABEL(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabel ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabel ))
 #define GL_WDGT_ROTATE_LABEL_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabelClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WDGT_ROTATE_LABEL, glWdgtRotateLabelClass))
 #define GL_IS_WDGT_ROTATE_LABEL(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WDGT_ROTATE_LABEL))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WDGT_ROTATE_LABEL))
 #define GL_IS_WDGT_ROTATE_LABEL_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_ROTATE_LABEL))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WDGT_ROTATE_LABEL))
 
 typedef struct _glWdgtRotateLabel         glWdgtRotateLabel;
 typedef struct _glWdgtRotateLabelClass    glWdgtRotateLabelClass;
index e5a63ab1e368dc926021b32028ec2f676f408d3e..19be8257eb35b7ffc83139d5b1a6db2e4e5f4750 100644 (file)
@@ -40,13 +40,13 @@ G_BEGIN_DECLS
 
 #define GL_TYPE_WINDOW (gl_window_get_type ())
 #define GL_WINDOW(obj) \
-        (GTK_CHECK_CAST((obj), GL_TYPE_WINDOW, glWindow ))
+        (G_TYPE_CHECK_INSTANCE_CAST((obj), GL_TYPE_WINDOW, glWindow ))
 #define GL_WINDOW_CLASS(klass) \
-        (GTK_CHECK_CLASS_CAST ((klass), GL_TYPE_WINDOW, glWindowClass))
+        (G_TYPE_CHECK_CLASS_CAST ((klass), GL_TYPE_WINDOW, glWindowClass))
 #define GL_IS_WINDOW(obj) \
-        (GTK_CHECK_TYPE ((obj), GL_TYPE_WINDOW))
+        (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GL_TYPE_WINDOW))
 #define GL_IS_WINDOW_CLASS(klass) \
-        (GTK_CHECK_CLASS_TYPE ((klass), GL_TYPE_WINDOW))
+        (G_TYPE_CHECK_CLASS_TYPE ((klass), GL_TYPE_WINDOW))
 
 typedef struct _glWindow      glWindow;
 typedef struct _glWindowClass glWindowClass;