Commit 9732223c authored by Joaquín Cuenca Abela's avatar Joaquín Cuenca Abela

janitorial work

parent 8611a252
2003-06-21 Joaquin Cuenca Abela <e98cuenc@yahoo.com>
* src/glade-placeholder.c: remove unused function.
* src/glade-utils.c: fix indentation and such.
* src/glade-widget.c: remove unused function.
2003-06-21 Joaquin Cuenca Abela <e98cuenc@yahoo.com>
* src/main.c: try to fix the unix build.
......
......@@ -159,21 +159,6 @@ glade_placeholder_add_methods_to_class (GladeWidgetClass *class)
class->placeholder_replace = glade_placeholder_replace_container;
}
static GdkWindow*
glade_placeholder_get_gdk_window (GladePlaceholder *placeholder,
GtkWidget **paint_widget)
{
GtkWidget *parent = GTK_WIDGET (placeholder)->parent;
if (parent) {
*paint_widget = parent;
return parent->window;
}
*paint_widget = GTK_WIDGET (placeholder);
return GTK_WIDGET (placeholder)->window;
}
static void
glade_placeholder_on_button_press_event (GladePlaceholder *placeholder,
GdkEventButton *event,
......
......@@ -292,7 +292,8 @@ glade_util_hide_window (GtkWindow *window)
gtk_window_move(window, x, y);
}
gint glade_util_check_key_is_esc (GtkWidget *widget,
gint
glade_util_check_key_is_esc (GtkWidget *widget,
GdkEventKey *event,
gpointer data)
{
......@@ -366,7 +367,8 @@ glade_util_replace (char *str, char a, char b)
* in the original string by two underscores. Returns a newly allocated
* string, or NULL if there is not enough memory.
*/
char *glade_util_duplicate_underscores (const char *name)
char *
glade_util_duplicate_underscores (const char *name)
{
const char *tmp;
const char *last_tmp = name;
......@@ -438,7 +440,8 @@ glade_util_draw_nodes (GtkWidget *widget, GdkEventExpose *expose, gpointer unuse
return FALSE;
}
void glade_util_add_nodes (GtkWidget *widget)
void
glade_util_add_nodes (GtkWidget *widget)
{
gint id;
......@@ -448,7 +451,8 @@ void glade_util_add_nodes (GtkWidget *widget)
gtk_widget_queue_draw (widget);
}
void glade_util_remove_nodes (GtkWidget *widget)
void
glade_util_remove_nodes (GtkWidget *widget)
{
gint id = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), GLADE_UTIL_ID_EXPOSE));
......@@ -459,12 +463,14 @@ void glade_util_remove_nodes (GtkWidget *widget)
gtk_widget_queue_draw (widget);
}
gboolean glade_util_has_nodes (GtkWidget *widget)
gboolean
glade_util_has_nodes (GtkWidget *widget)
{
return GPOINTER_TO_INT (g_object_get_data (G_OBJECT (widget), GLADE_UTIL_ID_EXPOSE)) != 0;
}
void glade_util_delete_selection (void)
void
glade_util_delete_selection (void)
{
GladeProject *project;
GladeWidget *glade_widget;
......
......@@ -1027,27 +1027,6 @@ glade_widget_set_name (GladeWidget *widget, const gchar *name)
glade_project_widget_name_changed (widget->project, widget);
}
static void
glade_widget_clear_draw_selection (GladeWidget *widget)
{
GdkWindow *window;
g_return_if_fail (GLADE_IS_WIDGET (widget));
if (widget->parent)
window = widget->parent->widget->window;
else
window = widget->widget->window;
gdk_window_clear_area (window,
widget->widget->allocation.x,
widget->widget->allocation.y,
widget->widget->allocation.width,
widget->widget->allocation.height);
gtk_widget_queue_draw (widget->widget);
}
/**
* glade_widget_clone:
* @widget:
......
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