Commit 817b98bb authored by Jose Maria Celorio's avatar Jose Maria Celorio

update

parent a32daf4b
gedit 0.9.4
New in this release :
- stuff
Updated Translations :
- Languaje - Joe Fox <joe@fox.com>
gedit 0.9.3 (Oct 17, 2000)
gedit 0.9.3 was not anoucend. It is a brown paper bag release. It difers
from 0.9.2 on a 1 line fix that avoids a crash.
gedit 0.9.2 (Oct 16, 2000)
gedit is a light text editor for the GNOME desktop.
......
2000-10-28 Chema Celorio <chema@celorio.com>
* window.c (gedit_window_set_view_menu_sensitivity): add some
g_return_ and GTK_IS_WIDGET to avoid a crash.
(gedit_window_set_widgets_sensitivity): ditto
2000-10-28 Chema Celorio <chema@celorio.com>
* print.c (g_unichar_to_utf8): new function temp.
(print_show_iso8859_1): new function so that we can print
with the new gnome-print. Remove when we use unicode internally
......
......@@ -33,7 +33,7 @@
#include "document.h"
#include "dialogs/dialogs.h"
#define __GEDIT_DISABLE_VIEW_MENU /* FIXME: This is not working correctly. Chema */
#define GEDIT_DISABLE_VIEW_MENU /* FIXME: This is not working correctly. Chema */
GnomeUIInfo popup_menu[] =
......
......@@ -229,7 +229,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
gedit_debug (DEBUG_WINDOW, "");
g_return_if_fail (app != NULL);
g_return_if_fail (GNOME_IS_APP (app));
switch (settings->mdi_mode)
{
......@@ -247,7 +247,8 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
sensitivity = TRUE;
break;
default:
g_assert_not_reached();
g_warning ("Should not happen.\n");
return;
}
/* get the UI_info structures */
......@@ -269,7 +270,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
if (sub_ui_info [sub_count].moreinfo == gedit_view_add_cb)
{
widget = sub_ui_info [sub_count].widget;
if (widget)
if (GTK_IS_WIDGET (widget))
gtk_widget_set_sensitive (widget, sensitivity);
}
if (sub_ui_info [sub_count].moreinfo == gedit_view_remove_cb)
......@@ -282,7 +283,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
if (g_list_length(doc->views)<2)
sensitivity = FALSE;
widget = sub_ui_info [sub_count].widget;
if (widget)
if (GTK_IS_WIDGET (widget))
gtk_widget_set_sensitive (widget, sensitivity);
}
if (sub_ui_info [sub_count].moreinfo == file_revert_cb)
......@@ -293,7 +294,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
doc = gedit_document_current();
widget = sub_ui_info [sub_count].widget;
if (widget != NULL && doc != NULL)
if (GTK_IS_WIDGET (widget) && doc != NULL)
gtk_widget_set_sensitive (widget, doc->filename!=NULL);
}
sub_count++;
......@@ -410,9 +411,9 @@ gedit_window_set_widgets_sensitivity (gint sensitive)
if (sensitive && g_list_length (mdi->children) == 0)
return;
app = g_list_nth_data (mdi->windows, 0);
app = GNOME_APP (g_list_nth_data (mdi->windows, 0));
g_return_if_fail (app!=NULL);
g_return_if_fail (GNOME_IS_APP (app));
/* get the UI_info structures */
ui_info = gnome_mdi_get_toolbar_info (app);
......
2000-10-28 Chema Celorio <chema@celorio.com>
* window.c (gedit_window_set_view_menu_sensitivity): add some
g_return_ and GTK_IS_WIDGET to avoid a crash.
(gedit_window_set_widgets_sensitivity): ditto
2000-10-28 Chema Celorio <chema@celorio.com>
* print.c (g_unichar_to_utf8): new function temp.
(print_show_iso8859_1): new function so that we can print
with the new gnome-print. Remove when we use unicode internally
......
......@@ -33,7 +33,7 @@
#include "document.h"
#include "dialogs/dialogs.h"
#define __GEDIT_DISABLE_VIEW_MENU /* FIXME: This is not working correctly. Chema */
#define GEDIT_DISABLE_VIEW_MENU /* FIXME: This is not working correctly. Chema */
GnomeUIInfo popup_menu[] =
......
......@@ -229,7 +229,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
gedit_debug (DEBUG_WINDOW, "");
g_return_if_fail (app != NULL);
g_return_if_fail (GNOME_IS_APP (app));
switch (settings->mdi_mode)
{
......@@ -247,7 +247,8 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
sensitivity = TRUE;
break;
default:
g_assert_not_reached();
g_warning ("Should not happen.\n");
return;
}
/* get the UI_info structures */
......@@ -269,7 +270,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
if (sub_ui_info [sub_count].moreinfo == gedit_view_add_cb)
{
widget = sub_ui_info [sub_count].widget;
if (widget)
if (GTK_IS_WIDGET (widget))
gtk_widget_set_sensitive (widget, sensitivity);
}
if (sub_ui_info [sub_count].moreinfo == gedit_view_remove_cb)
......@@ -282,7 +283,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
if (g_list_length(doc->views)<2)
sensitivity = FALSE;
widget = sub_ui_info [sub_count].widget;
if (widget)
if (GTK_IS_WIDGET (widget))
gtk_widget_set_sensitive (widget, sensitivity);
}
if (sub_ui_info [sub_count].moreinfo == file_revert_cb)
......@@ -293,7 +294,7 @@ gedit_window_set_view_menu_sensitivity (GnomeApp *app)
doc = gedit_document_current();
widget = sub_ui_info [sub_count].widget;
if (widget != NULL && doc != NULL)
if (GTK_IS_WIDGET (widget) && doc != NULL)
gtk_widget_set_sensitive (widget, doc->filename!=NULL);
}
sub_count++;
......@@ -410,9 +411,9 @@ gedit_window_set_widgets_sensitivity (gint sensitive)
if (sensitive && g_list_length (mdi->children) == 0)
return;
app = g_list_nth_data (mdi->windows, 0);
app = GNOME_APP (g_list_nth_data (mdi->windows, 0));
g_return_if_fail (app!=NULL);
g_return_if_fail (GNOME_IS_APP (app));
/* get the UI_info structures */
ui_info = gnome_mdi_get_toolbar_info (app);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment